- Type Parameters:
T
- Type required by the parameter
@API(status=STABLE)
public class ParserParameter<T>
extends Object
-
Constructor Summary
Constructors
Create a new parser parameter
-
Method Summary
final boolean
@NonNull io.leangen.geantyref.TypeToken<T>
Ge the type that is expected to be mapped to this parameter
final int
-
Constructor Details
-
ParserParameter
public ParserParameter(@NonNull String key,
@NonNull io.leangen.geantyref.TypeToken<T> expectedType)
Create a new parser parameter
- Parameters:
key
- Parameter key
expectedType
- Type that is expected to be mapped to this parameter
-
Method Details
-
getKey
public @NonNull 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
-
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object