interface Formatter<T> : Any
Methods
format
abstract fun format(value: T): String
Converts an object of type T into a String
Parameters
Name | Description |
---|---|
value: T
|
is the object to be converted in String |
ReturnValue
Name | Description |
---|---|
String
|
a String representing the object provided as argument |
A type for objects encapsulating some logic to convert any object of type T into a String