org.hibernate.validator.constraints.impl
Class SizeValidatorForArraysOfFloat
java.lang.Object
org.hibernate.validator.constraints.impl.SizeValidatorForArraysOfPrimitives
org.hibernate.validator.constraints.impl.SizeValidatorForArraysOfFloat
- All Implemented Interfaces:
- ConstraintValidator<Size,float[]>
public class SizeValidatorForArraysOfFloat
- extends SizeValidatorForArraysOfPrimitives
- implements ConstraintValidator<Size,float[]>
- Author:
- Hardy Ferentschik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SizeValidatorForArraysOfFloat
public SizeValidatorForArraysOfFloat()
isValid
public boolean isValid(float[] array,
ConstraintValidatorContext constraintValidatorContext)
- Checks the number of entries in an array.
- Specified by:
isValid
in interface ConstraintValidator<Size,float[]>
- Parameters:
array
- The array to validate.constraintValidatorContext
- 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 © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved