public class SizeValidatorForArrayOfFloat extends SizeValidator implements ConstraintValidator<Size,float[]>
max, min| Constructor and Description |
|---|
SizeValidatorForArrayOfFloat() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(float[] array,
ConstraintValidatorContext context)
Checks the number of entries in an array.
|
initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic boolean isValid(float[] array,
ConstraintValidatorContext context)
isValid in interface ConstraintValidator<Size,float[]>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.