Record Class WalkResult<C extends CommandContext<C>>
java.lang.Object
java.lang.Record
site.lab0x13.scrow.commands.parser.WalkResult<C>
public record WalkResult<C extends CommandContext<C>>(com.leakyabstractions.result.api.Result<CommandExecutor<C extends CommandContext<C>>, String> executor, SuggestionProvider<C extends CommandContext<C>> suggestionProvider, String input)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWalkResult(com.leakyabstractions.result.api.Result<CommandExecutor<C>, String> executor, SuggestionProvider<C> suggestionProvider) WalkResult(com.leakyabstractions.result.api.Result<CommandExecutor<C>, String> executor, SuggestionProvider<C> suggestionProvider, String input) Creates an instance of aWalkResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.leakyabstractions.result.api.Result<CommandExecutor<C>, String> executor()Returns the value of theexecutorrecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.Returns the value of thesuggestionProviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WalkResult
public WalkResult(com.leakyabstractions.result.api.Result<CommandExecutor<C>, String> executor, SuggestionProvider<C> suggestionProvider) -
WalkResult
public WalkResult(com.leakyabstractions.result.api.Result<CommandExecutor<C>, String> executor, SuggestionProvider<C> suggestionProvider, String input) Creates an instance of aWalkResultrecord class.- Parameters:
executor- the value for theexecutorrecord componentsuggestionProvider- the value for thesuggestionProviderrecord componentinput- the value for theinputrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
executor
Returns the value of theexecutorrecord component.- Returns:
- the value of the
executorrecord component
-
suggestionProvider
Returns the value of thesuggestionProviderrecord component.- Returns:
- the value of the
suggestionProviderrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-