public class SizeValidatorForArrayOfBoolean extends SizeValidator implements ConstraintValidator<Size,boolean[]>
max, min
Constructor and Description |
---|
SizeValidatorForArrayOfBoolean() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(boolean[] array,
ConstraintValidatorContext context)
Checks the number of entries in an array.
|
initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public boolean isValid(boolean[] array, ConstraintValidatorContext context)
isValid
in interface ConstraintValidator<Size,boolean[]>
array
- The array to validate.context
- 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 © 2010–2024 The Apache Software Foundation. All rights reserved.