Record Class ArgumentQueryResult
java.lang.Object
java.lang.Record
net.minestom.server.command.builder.parser.ArgumentQueryResult
public record ArgumentQueryResult(CommandSyntax syntax, Argument<?> argument, CommandContext context, String input)
extends Record
-
Constructor Summary
ConstructorDescriptionArgumentQueryResult
(CommandSyntax syntax, Argument<?> argument, CommandContext context, String input) Creates an instance of aArgumentQueryResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionArgument
<?> argument()
Returns the value of theargument
record component.context()
Returns the value of thecontext
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.input()
Returns the value of theinput
record component.syntax()
Returns the value of thesyntax
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ArgumentQueryResult
public ArgumentQueryResult(CommandSyntax syntax, Argument<?> argument, CommandContext context, String input) Creates an instance of aArgumentQueryResult
record class.- Parameters:
syntax
- the value for thesyntax
record componentargument
- the value for theargument
record componentcontext
- the value for thecontext
record componentinput
- the value for theinput
record component
-
-
Method Details
-
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)
. -
syntax
Returns the value of thesyntax
record component.- Returns:
- the value of the
syntax
record component
-
argument
Returns the value of theargument
record component.- Returns:
- the value of the
argument
record component
-
context
Returns the value of thecontext
record component.- Returns:
- the value of the
context
record component
-
input
Returns the value of theinput
record component.- Returns:
- the value of the
input
record component
-