abstract fun format(value: Any?): String
(source)
Returns a formatted version of the given value.
Following the minimum requirements for an ObjectFormatter:
null
Besides that it is up to the concrete implementation how it formats value. Nonetheless, following some conventions:
"true"
in case value is true
"false"
in case value is false
"'a'"
)"\"hello\""
)
value
- The value which shall be formatted.
Return
The formatted value.