blob: feed25da76d47d5c3f3cf884a6c350eda330983c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package com.beust.jcommander;
public interface IValueValidator<T> {
/**
* Validate the parameter.
*
* @param name The name of the parameter (e.g. "-host").
* @param value The value of the parameter that we need to validate
*
* @throws ParameterException Thrown if the value of the parameter is invalid.
*/
void validate(String name, T value) throws ParameterException;
}
|