The type of the input value; must extend "string".
The type of the output value; must extend "string".
Protected
validAn array of valid values or null if all strings are allowed.
Checks if the given value can be converted by this converter.
The value to check.
True if the value can be converted, false otherwise.
Returns the reverse converter for this converter.
Returns a cloned array of valid values or null if all strings are allowed.
Protected
isChecks if the given value is a valid value.
The value to check.
True if the value is a valid value, false otherwise.
Protected
throwThrows a ConversionError for the given value.
The value that caused the conversion error.
never - This function does not return; it always throws an error.
Static
createCreates a new instance of StringExToStringExConverter with specified valid values.
The type of the input value; must extend "string".
The type of the output value; must extend "string".
An array of valid values or null if all strings are allowed.
A new instance of String
Static
getReturns the singleton instance of the StringExToStringExConverter.
The type of the input value; must extend "string".
The type of the output value; must extend "string".
The singleton instance of the StringExToStringExConverter.
Converter that converts a value of type "TInput" to a value of type "TOutput" where both types extend "string". Singleton variant can be used to convert between two opaque string types. A custom instance created with static createOneOf() method can be used to ensure that only specific string values are allowed.