Class FunctionParameterTypePredicate<T>
- java.lang.Object
-
- org.apache.qpid.server.query.engine.validation.FunctionParameterTypePredicate<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctionParameterTypePredicate.Builder<T>Builder used to create predicate
-
Constructor Summary
Constructors Constructor Description FunctionParameterTypePredicate(boolean allowBooleans, boolean allowComparables, boolean allowDateTimeTypes, boolean allowEnums, boolean allowNulls, boolean allowNumbers, boolean allowStrings)Constructor sets state flags
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> FunctionParameterTypePredicate.Builder<T>builder()Creates builderbooleantest(T value)
-
-
-
Constructor Detail
-
FunctionParameterTypePredicate
public FunctionParameterTypePredicate(boolean allowBooleans, boolean allowComparables, boolean allowDateTimeTypes, boolean allowEnums, boolean allowNulls, boolean allowNumbers, boolean allowStrings)Constructor sets state flags- Parameters:
allowBooleans- Flag defines whether boolean values are allowed or notallowComparables- Flag defines whether comparable values are allowed or notallowDateTimeTypes- Flag defines whether datetime values are allowed or notallowEnums- Flag defines whether enum values are allowed or notallowNulls- Flag defines whether null values are allowed or notallowNumbers- Flag defines whether numeric values are allowed or notallowStrings- Flag defines whether string values are allowed or not
-
-
Method Detail
-
test
public boolean test(T value)
-
builder
public static <T> FunctionParameterTypePredicate.Builder<T> builder()
Creates builder- Type Parameters:
T- Function parameter type- Returns:
- Builder instance
-
-