org.apache.bval.constraints
Class SizeValidatorForArrayOfFloat
java.lang.Object
org.apache.bval.constraints.SizeValidator
org.apache.bval.constraints.SizeValidatorForArrayOfFloat
- All Implemented Interfaces:
- ConstraintValidator<Size,float[]>
public class SizeValidatorForArrayOfFloat
- extends SizeValidator
- implements ConstraintValidator<Size,float[]>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SizeValidatorForArrayOfFloat
public SizeValidatorForArrayOfFloat()
isValid
public boolean isValid(float[] array,
ConstraintValidatorContext context)
- Checks the number of entries in an array.
- Specified by:
isValid
in interface ConstraintValidator<Size,float[]>
- Parameters:
array
- The array to validate.context
- context in which the constraint is evaluated.
- Returns:
- Returns
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-2012 Apache Software Foundation. All Rights Reserved.