Interface ParameterType<ValueType>
- Type Parameters:
ValueType- The type of the parameter value.
- All Superinterfaces:
EntityType<ValueType>
Represents the type of a parameter. That is, it binds a parameter name to a value type.
Two ParameterTypes are considered to equal if they have the same header name.
-
Method Summary
Modifier and TypeMethodDescriptionFactory method to createParameters of this type from a value.entityFromString(String parameterValueString) name()Returns the name of the parameter.valueString(ValueType headerValue) Returns the string representation of the given parameter value as defined for thisParameter.Methods inherited from interface org.dmfs.httpessentials.typedentity.EntityType
valueFromString
-
Method Details
-
name
String name()Returns the name of the parameter.- Specified by:
namein interfaceEntityType<ValueType>- Returns:
- The parameter name, never
null.
-
entityFromString
- Specified by:
entityFromStringin interfaceEntityType<ValueType>- Parameters:
parameterValueString- The String representation of the Parameter value.- Returns:
- A new
Parameterinstance.
-
entity
Factory method to createParameters of this type from a value.- Specified by:
entityin interfaceEntityType<ValueType>- Parameters:
value- The value of the parameter, must not benull- Returns:
- A new
Parameterinstance.
-
valueString
Returns the string representation of the given parameter value as defined for thisParameter.- Specified by:
valueStringin interfaceEntityType<ValueType>- Parameters:
headerValue- The value to convert.- Returns:
- A value String representing the given value.
-