Class ParameterGroup.Builder
java.lang.Object
nl.pim16aap2.util.reflection.ParameterGroup.Builder
- Enclosing class:
ParameterGroup
Represents a builder for
ParameterGroups.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs a newParameterGroupfrom this builder.withOptionalParameters(Class<?>... types) Appends a set of types as optional parameter to the current parameter group.withRequiredParameters(Class<?>... types) Appends a set of types as required parameters to the current parameter group.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
withRequiredParameters
Appends a set of types as required parameters to the current parameter group.- Parameters:
types- The types to add as required parameters.- Returns:
- The instance of the current parameter group.
-
withOptionalParameters
Appends a set of types as optional parameter to the current parameter group.Optional types can be skipped when comparing against a set of arguments.
- Parameters:
types- The types to add as optional parameters.- Returns:
- The instance of the current parameter group.
-
construct
Constructs a newParameterGroupfrom this builder.- Returns:
- The newly created
ParameterGroup.
-