Class Argument<T>
java.lang.Object
org.teleight.teleightbots.commands.builder.argument.Argument<T>
- Type Parameters:
T- the type of the argument
- Direct Known Subclasses:
ArgumentInteger,ArgumentString
Abstract class representing a command argument.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
The identifier of the argument.
-
-
Constructor Details
-
Argument
Constructs an Argument with the specified identifier.- Parameters:
id- the identifier of the argument
-
-
Method Details
-
getId
Returns the identifier of the argument.- Returns:
- the identifier of the argument
-
parse
Parses the input into an object of type T.- Parameters:
input- the input to be parsed- Returns:
- the parsed object
- Throws:
ArgumentSyntaxException- if the input cannot be parsed
-
equals
Indicates whether some other object is "equal to" this one. -
hashCode
public int hashCode()
-