format
Returns a formatted version of the given value.
The following rules apply for the representation of an object:
null
is represented as Text.NULL.Text.stringLazyRepresentation is evaluated and then again formatted
Char is put in apostrophes
String is put in quotes and its Class.getName is omitted
CharSequence is put in quotes, but KClass.qualifiedName is used in contrast to String
Text is represented as Text.string
Translatable is represented as result of its translation (by translator)
Class is represented as "Class.getSimpleName (Class.getName)"
KClass is represented as "KClass.simpleName (KClass.qualifiedName)" unless the KClass.qualifiedName differs from Class.getName in which case, "-- Class: Class.getName" is appended in addition
Enum is represented as "toString (Class.getName)
Throwable is represented as "Class.getName"
All other objects are represented as "toString (Class.getName<System.identityHashCode>)"
Return
The formatted value.
Parameters
The value which shall be formatted.