Class MaxValidatorForCharSequence
- java.lang.Object
-
- org.hibernate.validator.internal.constraintvalidators.bv.number.bound.AbstractMaxValidator<CharSequence>
-
- org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MaxValidatorForCharSequence
-
- All Implemented Interfaces:
ConstraintValidator<Max,CharSequence>
public class MaxValidatorForCharSequence extends AbstractMaxValidator<CharSequence>
Check that the character sequence (e.g. string) validated represents a number, and has a value less than or equal to the maximum value specified.- Author:
- Alaa Nassef, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Guillaume Smet
-
-
Field Summary
-
Fields inherited from class org.hibernate.validator.internal.constraintvalidators.bv.number.bound.AbstractMaxValidator
maxValue
-
-
Constructor Summary
Constructors Constructor Description MaxValidatorForCharSequence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcompare(CharSequence number)-
Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.number.bound.AbstractMaxValidator
initialize, isValid
-
-
-
-
Method Detail
-
compare
protected int compare(CharSequence number)
- Specified by:
comparein classAbstractMaxValidator<CharSequence>
-
-