play.data.validation
Class Constraints.MinValidator

java.lang.Object
  extended by play.data.validation.Constraints.Validator<java.lang.Number>
      extended by play.data.validation.Constraints.MinValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator<Constraints.Min,java.lang.Number>
Enclosing class:
Constraints

public static class Constraints.MinValidator
extends Constraints.Validator<java.lang.Number>
implements javax.validation.ConstraintValidator<Constraints.Min,java.lang.Number>

Validator for @Min fields.


Field Summary
static java.lang.String message
           
 
Constructor Summary
Constraints.MinValidator()
           
Constraints.MinValidator(long value)
           
 
Method Summary
 void initialize(Constraints.Min constraintAnnotation)
           
 boolean isValid(java.lang.Number object)
          Returns true if this value is valid.
 
Methods inherited from class play.data.validation.Constraints.Validator
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.validation.ConstraintValidator
isValid
 

Field Detail

message

public static final java.lang.String message
See Also:
Constant Field Values
Constructor Detail

Constraints.MinValidator

public Constraints.MinValidator()

Constraints.MinValidator

public Constraints.MinValidator(long value)
Method Detail

initialize

public void initialize(Constraints.Min constraintAnnotation)
Specified by:
initialize in interface javax.validation.ConstraintValidator<Constraints.Min,java.lang.Number>

isValid

public boolean isValid(java.lang.Number object)
Description copied from class: Constraints.Validator
Returns true if this value is valid.

Specified by:
isValid in class Constraints.Validator<java.lang.Number>