Class ParserParameter<T>
- java.lang.Object
-
- cloud.commandframework.arguments.parser.ParserParameter<T>
-
- Type Parameters:
T
- Type required by the parameter
public class ParserParameter<T> extends java.lang.Object
Parser parameter used when retrieving parsers from theParserRegistry
-
-
Constructor Summary
Constructors Constructor Description ParserParameter(@NonNull java.lang.String key, @NonNull io.leangen.geantyref.TypeToken<T> expectedType)
Create a new parser parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
@NonNull io.leangen.geantyref.TypeToken<T>
getExpectedType()
Ge the type that is expected to be mapped to this parameter@NonNull java.lang.String
getKey()
Get the parameter keyint
hashCode()
-
-
-
Constructor Detail
-
ParserParameter
public ParserParameter(@NonNull java.lang.String key, @NonNull io.leangen.geantyref.TypeToken<T> expectedType)
Create a new parser parameter- Parameters:
key
- Parameter keyexpectedType
- Type that is expected to be mapped to this parameter
-
-
Method Detail
-
getKey
public @NonNull java.lang.String getKey()
Get the parameter key- Returns:
- Parameter key
-
getExpectedType
public @NonNull io.leangen.geantyref.TypeToken<T> getExpectedType()
Ge the type that is expected to be mapped to this parameter- Returns:
- Expected type
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-