Interface Parameter.Modifier
- All Known Implementing Classes:
Parameter.Modifier.RangedModifier
public static interface Parameter.Modifier
Represents a modifier that can be applied to a parameter
when constructing one using
DefaultFunction.Builder.parameter(String, Class, Modifier[]).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classParameter.Modifier.RangedModifier<T extends Comparable<T>>Modifier specifying valid range bounds for numeric parameters. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Parameter.ModifierThe modifier for parameters that support optional keyed expressions.static final Parameter.ModifierThe modifier for parameters that are optional.static final Parameter.ModifierA modifier to use for checking if a parameter is ranged. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Parameter.Modifierof()static <T extends Comparable<T>>
Parameter.Modifier.RangedModifier<T> ranged(T min, T max) Creates a range modifier with inclusive min and max bounds.
-
Field Details
-
OPTIONAL
The modifier for parameters that are optional. -
KEYED
The modifier for parameters that support optional keyed expressions.- See Also:
-
RANGED
A modifier to use for checking if a parameter is ranged. Do NOT use for declaring a parameter to be ranged, useranged(Comparable, Comparable)Accessing the min and the max values can be done viaParameter.getModifier(Class).
-
-
Method Details
-
of
- Returns:
- A new Modifier instance to be used as a custom flag.
-
ranged
Creates a range modifier with inclusive min and max bounds.
-