org.qi4j.api.io
Class Transforms.ObjectToString
java.lang.Object
org.qi4j.api.io.Transforms.ObjectToString
- All Implemented Interfaces:
- Function<Object,String>
- Enclosing class:
- Transforms
public static class Transforms.ObjectToString
- extends Object
- implements Function<Object,String>
Convert objects to Strings using .toString()
Method Summary |
String |
map(Object o)
Map a single item from one type to another |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transforms.ObjectToString
public Transforms.ObjectToString()
map
public String map(Object o)
- Description copied from interface:
Function
- Map a single item from one type to another
- Specified by:
map
in interface Function<Object,String>
- Parameters:
o
- the input item
- Returns:
- the mapped item