public class PowerOfTwoValidator extends Object implements javax.validation.ConstraintValidator<PowerOfTwo,Integer>
| Constructor and Description |
|---|
PowerOfTwoValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(PowerOfTwo powerOfTwo) |
boolean |
isValid(Integer value,
javax.validation.ConstraintValidatorContext context) |
public void initialize(PowerOfTwo powerOfTwo)
initialize in interface javax.validation.ConstraintValidator<PowerOfTwo,Integer>public boolean isValid(Integer value, javax.validation.ConstraintValidatorContext context)
isValid in interface javax.validation.ConstraintValidator<PowerOfTwo,Integer>Copyright © 2012–2019. All rights reserved.