Interface OptionalValueSupplier
public interface OptionalValueSupplier
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull OptionalValueSupplierempty()default booleanisEmpty()static OptionalValueSuppliersupply(ExecutionContext<S> context, CommandParameter<S> parameter) Supplies a default-value for optional usage parametersCommandParameter
-
Field Details
-
EMPTY
-
-
Method Details
-
of
-
empty
-
isEmpty
default boolean isEmpty() -
supply
@Nullable <S extends Source> @Nullable String supply(ExecutionContext<S> context, CommandParameter<S> parameter) Supplies a default-value for optional usage parametersCommandParameter- Parameters:
context- the contextparameter- the parameter- Returns:
- the resolved default value
-