Creates a new instance.
a mapping from the name of a type to the string representation of its values
Sets the function that maps a value of the given type to a string. This method is useful for customizing the formatting of validation failure messages.
a type
a function that returns the String representation of the type's instances
this
Returns an immutable copy of the mapper configuration.
an immutable copy of the mapper configuration
Returns the string representation of this instance
the string representation of this instance
Static
fromReturns a mutable copy of the StringMappers.
a StringMappers
object
a mutable copy of the StringMappers
Returns the String representation of