public class SizeValidatorForArraysOfBoolean extends SizeValidatorForArraysOfPrimitives implements ConstraintValidator<Size,boolean[]>
max, min| Constructor and Description |
|---|
SizeValidatorForArraysOfBoolean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(boolean[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic boolean isValid(boolean[] array,
ConstraintValidatorContext constraintValidatorContext)
isValid in interface ConstraintValidator<Size,boolean[]>array - The array to validate.constraintValidatorContext - context in which the constraint is evaluated.true if the array is null or the number of entries in
array is between the specified min and max values (inclusive),
false otherwise.Copyright © 2018 JBoss by Red Hat. All rights reserved.