Top Constructors Methods
org.hibernate.validator.internal.constraintvalidators.bv.notempty

public Class NotEmptyValidatorForArraysOfFloat

extends Object
implements ConstraintValidator<NotEmpty, float[]>
Class Inheritance
All Implemented Interfaces
jakarta.validation.ConstraintValidator
Imports
jakarta.validation.ConstraintValidator, .ConstraintValidatorContext, jakarta.validation.constraints.NotEmpty

Author
Guillaume Smet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

returns true if the array is not null and the array is not empty
isValid
(float[]
the array to validate
array
,
ConstraintValidatorContext
context in which the constraint is evaluated
constraintValidatorContext
)

Implements jakarta.validation.ConstraintValidator.isValid.

Checks the array is not null and not empty.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NotEmptyValidatorForArraysOfFloatback to summary
public NotEmptyValidatorForArraysOfFloat()

Method Detail

isValidback to summary
public boolean isValid(float[] array, ConstraintValidatorContext constraintValidatorContext)

Implements jakarta.validation.ConstraintValidator.isValid.

Checks the array is not null and not empty.

Parameters
array:float[]

the array to validate

constraintValidatorContext:ConstraintValidatorContext

context in which the constraint is evaluated

Returns:boolean

returns true if the array is not null and the array is not empty

Annotations
@Override