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.ObjectParser 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
Modifier and Type Method Description booleanequals(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.StringgetKey()Get the parameter keyinthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-