Interface Parameter.Key<T>
- Type Parameters:
- T- The type.
- Enclosing interface:
- Parameter
public static interface Parameter.Key<T>
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA "builder" that allows for keys to be built.
- 
Method SummaryModifier and TypeMethodDescriptionCast the provided value to the value type.booleanisInstance(Object value) Return whether the value is an instance of this key's value type.key()Gets the string key associated with this parameter.type()Gets theTypeTokenof the type of object that this parameter should return from parsing.
- 
Method Details- 
keyString key()Gets the string key associated with this parameter.- Returns:
- The key.
 
- 
typeType type()Gets theTypeTokenof the type of object that this parameter should return from parsing.- Returns:
- The TypeToken
 
- 
isInstanceReturn whether the value is an instance of this key's value type.- Parameters:
- value- value to check
- Returns:
- if instance
 
- 
castCast the provided value to the value type.- Parameters:
- value- value
- Returns:
- the casted value
- Throws:
- ClassCastException- if- valueis not of the correct type
 
 
-