- java.lang.Object
-
- io.github.mmm.ui.spi.DefaultFormatter<V>
-
- Type Parameters:
V
- type of the value toformat
.
public final class DefaultFormatter<V> extends Object implements Function<V,String>
FormatterFunction
that delegates toObject.toString()
including localization. Usethis formatter
as default with option to override in order to give flexiblity.- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(V t)
static <V> DefaultFormatter<V>
get()
-
-
-
Method Detail
-
get
public static <V> DefaultFormatter<V> get()
- Type Parameters:
V
- type of the value toformat
.- Returns:
- the singleton instance of
ToStringFormatter
.
-
-