org.qi4j.api.io
Class Transforms.Counter<T>
java.lang.Object
org.qi4j.api.io.Transforms.Counter<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Function<T,T>
- Enclosing class:
- Transforms
public static class Transforms.Counter<T>
- extends Object
- implements Function<T,T>
Count the number of items in the transfer.
Method Summary |
long |
getCount()
|
T |
map(T t)
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.Counter
public Transforms.Counter()
getCount
public long getCount()
map
public T map(T t)
- Description copied from interface:
Function
- Map a single item from one type to another
- Specified by:
map
in interface Function<T,T>
- Parameters:
t
- the input item
- Returns:
- the mapped item