Formatter

interface Formatter<T> : Any

A type for objects encapsulating some logic to convert any object of type T into a String

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