Class ConfirmationBuilderModifier<C>
java.lang.Object
org.incendo.cloud.processors.confirmation.annotation.ConfirmationBuilderModifier<C>
- Type Parameters:
C- command sender type
- All Implemented Interfaces:
org.incendo.cloud.annotations.BuilderModifier<Confirmation,C>
@API(status=STABLE,
since="1.0.0")
public final class ConfirmationBuilderModifier<C>
extends Object
implements org.incendo.cloud.annotations.BuilderModifier<Confirmation,C>
Builder modifier that will add the
ConfirmationManager.META_CONFIRMATION_REQUIRED
meta value to the command builder.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C> voidAdds the confirmation builder modifier to the givenannotationParser.@NonNull Command.Builder<? extends C>modifyBuilder(@NonNull Confirmation annotation, @NonNull Command.Builder<C> builder) static <C> @NonNull org.incendo.cloud.annotations.BuilderModifier<Confirmation,C> of()Creates a new builder modifier that will add theConfirmationManager.META_CONFIRMATION_REQUIREDmeta value to the command builder.
-
Method Details
-
of
Creates a new builder modifier that will add theConfirmationManager.META_CONFIRMATION_REQUIREDmeta value to the command builder.- Type Parameters:
C- command sender type- Returns:
- the builder modifier
-
install
public static <C> void install(@NonNull org.incendo.cloud.annotations.AnnotationParser<C> annotationParser) Adds the confirmation builder modifier to the givenannotationParser.- Type Parameters:
C- command sender type- Parameters:
annotationParser- annotation parser to add the builder modifier to
-
modifyBuilder
public @NonNull Command.Builder<? extends C> modifyBuilder(@NonNull Confirmation annotation, @NonNull Command.Builder<C> builder) - Specified by:
modifyBuilderin interfaceorg.incendo.cloud.annotations.BuilderModifier<Confirmation,C>
-