ValueType - The type of the parameter value.public interface ParameterType<ValueType> extends EntityType<ValueType>
Two ParameterTypes are considered to equal if they have the same header name.
| Modifier and Type | Method and Description |
|---|---|
Parameter<ValueType> |
entity(ValueType value)
Factory method to create
Parameters of this type from a value. |
Parameter<ValueType> |
entityFromString(java.lang.String parameterValueString)
Factory method to create
Parameters of this type from the given String representation. |
java.lang.String |
name()
Returns the name of the parameter.
|
java.lang.String |
valueString(ValueType headerValue)
Returns the string representation of the given parameter value as defined for this
Parameter. |
valueFromStringjava.lang.String name()
name in interface EntityType<ValueType>null.Parameter<ValueType> entityFromString(java.lang.String parameterValueString)
Parameters of this type from the given String representation.entityFromString in interface EntityType<ValueType>parameterValueString - The String representation of the Parameter value.Parameter instance.Parameter<ValueType> entity(ValueType value)
Parameters of this type from a value.entity in interface EntityType<ValueType>value - The value of the parameter, must not be nullParameter instance.java.lang.String valueString(ValueType headerValue)
Parameter.valueString in interface EntityType<ValueType>headerValue - The value to convert.