- java.lang.Object
-
- io.github.mmm.base.lang.ToStringFormatter<V>
-
- Type Parameters:
V- type of the value toformat.
public final class ToStringFormatter<V> extends Object implements Function<V,String>
FormatterFunctionthat delegates toObject.toString(). Usethis formatteras 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 Stringapply(V t)static <V> ToStringFormatter<V>get()
-
-
-
Method Detail
-
get
public static <V> ToStringFormatter<V> get()
- Type Parameters:
V- type of the value toformat.- Returns:
- the singleton instance of
ToStringFormatter.
-
-