org.qi4j.api.io
Class Transforms.Counter<T>

java.lang.Object
  extended by 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.


Constructor Summary
Transforms.Counter()
           
 
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
 

Constructor Detail

Transforms.Counter

public Transforms.Counter()
Method Detail

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