public class MaxMinValidator extends Object implements IValueValidator<Number>
| Constructor and Description |
|---|
MaxMinValidator(Number min,
Number max)
Create a validator comparing to these INCLUSIVE bounds.
|
MaxMinValidator(Number min,
Number max,
UIMessage msg)
Create a validator comparing to these INCLUSIVE bounds.
|
public MaxMinValidator(@Nonnull Number min, @Nonnull Number max, @Nullable UIMessage msg)
max - min - msg - If specified this error message will be shown, otherwise default error message is shown.public void validate(Number input) throws Exception
validate in interface IValueValidator<Number>ExceptionIValueValidator.validate(java.lang.Object)Copyright © 2017 etc.to. All rights reserved.