Interface NeedsExecutionBuilderStage
public interface NeedsExecutionBuilderStage
A stage in a command builder where requirements have already been specified and execution details
are required. The next stage is a
NeedsNameBuilderStage from executing(Consumer). Additional requirements may still be added before moving on to the next
stage.-
Method Summary
Modifier and TypeMethodDescriptionSets the function body of the executing command.requiring(Collection<Mechanism> requirements) Adds required mechanisms for the command.Adds a required mechanism for the command.Adds one or more required mechanisms for the command.
-
Method Details
-
requiring
Adds a required mechanism for the command.- Parameters:
requirement- A required mechanism. Cannot be null.- Returns:
- This builder object, for chaining
- Throws:
NullPointerException- Ifrequirementis null
-
requiring
Adds one or more required mechanisms for the command.- Parameters:
requirement- A required mechanism. Cannot be null.extra- Any extra required mechanisms. May be empty, but cannot contain null values.- Returns:
- This builder object, for chaining
- Throws:
NullPointerException- Ifrequirementis null orextracontains a null value
-
requiring
Adds required mechanisms for the command.- Parameters:
requirements- Any required mechanisms. May be empty, but cannot contain null values.- Returns:
- This builder object, for chaining
- Throws:
NullPointerException- Ifrequirementsis null or contains a null value.
-
executing
Sets the function body of the executing command.- Parameters:
impl- The command's body. Cannot be null.- Returns:
- A builder for the next stage of command construction.
- Throws:
NullPointerException- Ifimplis null.
-