public final class NumberUnitValidator<BASE_VALUE_TYPE extends java.lang.Number,UNIT_VALUE_TYPE extends java.lang.Number> extends java.lang.Object implements IValidator<IUnitValue<UNIT_VALUE_TYPE>>
Constructor and Description |
---|
NumberUnitValidator(IUnitConverter<BASE_VALUE_TYPE,UNIT_VALUE_TYPE> converter) |
Modifier and Type | Method and Description |
---|---|
IValidationResult |
validate(IUnitValue<UNIT_VALUE_TYPE> value)
Do the validation for a given value
|
public NumberUnitValidator(IUnitConverter<BASE_VALUE_TYPE,UNIT_VALUE_TYPE> converter)
public IValidationResult validate(IUnitValue<UNIT_VALUE_TYPE> value)
IValidator
validate
in interface IValidator<IUnitValue<UNIT_VALUE_TYPE extends java.lang.Number>>
value
- The value to validate, may be nullSiehe auch Jowidgets Nutzerhandbuch