public class RequiredFieldConfiguratorUtil extends Object
RequiredFieldConfigurator. The methods are
extracted to a separate class to prevent populating the public API of the
RequiredFieldConfigurator interface.| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasZeroSize(Object value)
Checks whether the given object would be considered empty according to
the
Size constraint. |
static boolean |
testConvertedDefaultValue(Binder.BindingBuilder<?,?> binding,
Predicate<Object> predicate)
Tests the converted default value of the provided binding builder if
possible.
|
public static boolean hasZeroSize(Object value)
Size constraint.value - the value to checkfalsepublic static boolean testConvertedDefaultValue(Binder.BindingBuilder<?,?> binding, Predicate<Object> predicate)
binding - the binding builder to testpredicate - predicate for testing the converted default valuetrue if a converted default value is available and
it passes the test; false if no converted default
value is available or if it doesn't pass the testCopyright © 2025. All rights reserved.