public class DigitsValidatorForNumber extends Object implements ConstraintValidator<Digits,Number>
Number
being validates matches the pattern
defined in the constraint.Constructor and Description |
---|
DigitsValidatorForNumber() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Digits constraintAnnotation) |
boolean |
isValid(Number num,
ConstraintValidatorContext constraintValidatorContext) |
public void initialize(Digits constraintAnnotation)
initialize
in interface ConstraintValidator<Digits,Number>
public boolean isValid(Number num, ConstraintValidatorContext constraintValidatorContext)
isValid
in interface ConstraintValidator<Digits,Number>
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved