org.apache.bval.constraints
Class MaxValidatorForNumber
java.lang.Object
org.apache.bval.constraints.MaxValidatorForNumber
- All Implemented Interfaces:
- ConstraintValidator<Max,Number>
public class MaxValidatorForNumber
- extends Object
- implements ConstraintValidator<Max,Number>
Check that the number being validated is less than or equal to the maximum
value specified.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxValidatorForNumber
public MaxValidatorForNumber()
initialize
public void initialize(Max annotation)
- Specified by:
initialize
in interface ConstraintValidator<Max,Number>
isValid
public boolean isValid(Number value,
ConstraintValidatorContext context)
- Specified by:
isValid
in interface ConstraintValidator<Max,Number>
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.