Package cloud.commandframework
Interface Command.Builder.Applicable<C>
- Type Parameters:
C
- sender type
- Enclosing class:
- Command.Builder<C>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@API(status=STABLE,
since="1.8.0")
@FunctionalInterface
public static interface Command.Builder.Applicable<C>
Essentially a
UnaryOperator
for Command.Builder
,
but as a separate interface to avoid conflicts.- Since:
- 1.8.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull Command.Builder<C>
applyToCommandBuilder
(@NonNull Command.Builder<C> builder) Accepts aCommand.Builder
and returns either the same or a modifiedCommand.Builder
instance.
-
Method Details
-
applyToCommandBuilder
@API(status=STABLE, since="1.8.0") @NonNull Command.Builder<C> applyToCommandBuilder(@NonNull Command.Builder<C> builder) Accepts aCommand.Builder
and returns either the same or a modifiedCommand.Builder
instance.- Parameters:
builder
- builder- Returns:
- possibly modified builder
- Since:
- 1.8.0
-