org.apache.bval.constraints
Class DecimalMaxValidatorForNumber
java.lang.Object
org.apache.bval.constraints.DecimalMaxValidatorForNumber
- All Implemented Interfaces:
- ConstraintValidator<DecimalMax,Number>
public class DecimalMaxValidatorForNumber
- extends Object
- implements ConstraintValidator<DecimalMax,Number>
Description: validate that number-value of passed object is <= maxvalue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecimalMaxValidatorForNumber
public DecimalMaxValidatorForNumber()
initialize
public void initialize(DecimalMax annotation)
- Specified by:
initialize
in interface ConstraintValidator<DecimalMax,Number>
isValid
public boolean isValid(Number value,
ConstraintValidatorContext context)
- Specified by:
isValid
in interface ConstraintValidator<DecimalMax,Number>
Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.