Interface Parameter<T>
- Type Parameters:
T
- The type of the function parameter.
- All Known Implementing Classes:
Parameter
public interface Parameter<T>
Represents a function parameter.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Represents a modifier that can be applied to a parameter when constructing one usingDefaultFunction.Builder.parameter(String, Class, Modifier[])
}. -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
hasModifier
(Parameter.Modifier modifier) Returns whether this parameter has the specified modifier.@Unmodifiable @NotNull Set
<Parameter.Modifier> @NotNull String
name()
default boolean
single()
type()
-
Method Details
-
name
- Returns:
- The name of this parameter.
-
type
- Returns:
- The type of this parameter.
-
modifiers
- Returns:
- All modifiers belonging to this parameter.
-
hasModifier
Returns whether this parameter has the specified modifier.- Parameters:
modifier
- The modifier.- Returns:
- True when
modifiers()
contains the specified modifier, false if not.
-
single
default boolean single()- Returns:
- Whether this parameter is for single values.
-