Record Class FlagValueParser<C>
java.lang.Object
java.lang.Record
org.empirewar.orbis.command.parser.FlagValueParser<C>
- All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<C,,FlagValue<?>> org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<C,,FlagValue<?>> org.incendo.cloud.suggestion.SuggestionProvider<C>,org.incendo.cloud.suggestion.SuggestionProviderHolder<C>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser
org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<C,T> -
Constructor Summary
ConstructorsConstructorDescriptionFlagValueParser(org.incendo.cloud.CommandManager<?> manager) Creates an instance of aFlagValueParserrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.incendo.cloud.CommandManager<?> manager()Returns the value of themanagerrecord component.@NonNull CompletableFuture<@NonNull org.incendo.cloud.parser.ArgumentParseResult<FlagValue<?>>> parseFuture(@NonNull org.incendo.cloud.context.CommandContext<@NonNull C> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput) @NonNull CompletableFuture<? extends @NonNull Iterable<? extends @NonNull org.incendo.cloud.suggestion.Suggestion>> suggestionsFuture(@NonNull org.incendo.cloud.context.CommandContext<C> context, @NonNull org.incendo.cloud.context.CommandInput input) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.incendo.cloud.parser.ArgumentParser
flatMap, flatMapSuccess, mapSuccess, suggestionProviderMethods inherited from interface org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser
parse
-
Constructor Details
-
FlagValueParser
public FlagValueParser(org.incendo.cloud.CommandManager<?> manager) Creates an instance of aFlagValueParserrecord class.- Parameters:
manager- the value for themanagerrecord component
-
-
Method Details
-
parseFuture
public @NonNull CompletableFuture<@NonNull org.incendo.cloud.parser.ArgumentParseResult<FlagValue<?>>> parseFuture(@NonNull org.incendo.cloud.context.CommandContext<@NonNull C> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput) -
suggestionsFuture
public @NonNull CompletableFuture<? extends @NonNull Iterable<? extends @NonNull org.incendo.cloud.suggestion.Suggestion>> suggestionsFuture(@NonNull org.incendo.cloud.context.CommandContext<C> context, @NonNull org.incendo.cloud.context.CommandInput input) - Specified by:
suggestionsFuturein interfaceorg.incendo.cloud.suggestion.SuggestionProvider<C>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
manager
public org.incendo.cloud.CommandManager<?> manager()Returns the value of themanagerrecord component.- Returns:
- the value of the
managerrecord component
-