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
ConstructorsConstructorDescriptionArgumentQueryResult(CommandSyntax syntax, Argument<?> argument, CommandContext context, String input) Creates an instance of aArgumentQueryResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionArgument<?> argument()Returns the value of theargumentrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.syntax()Returns the value of thesyntaxrecord component.final StringtoString()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 aArgumentQueryResultrecord class.- Parameters:
syntax- the value for thesyntaxrecord componentargument- the value for theargumentrecord componentcontext- the value for thecontextrecord componentinput- the value for theinputrecord 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 thesyntaxrecord component.- Returns:
- the value of the
syntaxrecord component
-
argument
Returns the value of theargumentrecord component.- Returns:
- the value of the
argumentrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-