org.qi4j.api.io
Class Transforms.Log<T>
java.lang.Object
org.qi4j.api.io.Transforms.Log<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Function<T,T>
- Enclosing class:
- Transforms
public static class Transforms.Log<T>
- extends Object
- implements Function<T,T>
Log the toString() representation of transferred items to the given log. The string is first formatted using MessageFormat
with the given format.
Method Summary |
T |
map(T item)
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.Log
public Transforms.Log(org.slf4j.Logger logger,
String format)
map
public T map(T item)
- Description copied from interface:
Function
- Map a single item from one type to another
- Specified by:
map
in interface Function<T,T>
- Parameters:
item
- the input item
- Returns:
- the mapped item