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

java.lang.Object
  extended by org.qi4j.io.Transforms.Counter<T>
Type Parameters:
T -
All Implemented Interfaces:
Function<T,T>
Enclosing class:
Transforms

public static class Transforms.Counter<T>
extends java.lang.Object
implements Function<T,T>

Count the number of items in the transfer.


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

count

public long count()

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