fi.iki.juri.collections
Class EnumeratedItem<T>

java.lang.Object
  extended by fi.iki.juri.collections.EnumeratedItem<T>

public class EnumeratedItem<T>
extends java.lang.Object

A generic object wrapper with a int field. For use with the JIterTools.enumerate(java.util.Iterator) methods.


Constructor Summary
EnumeratedItem(int count, T item)
           
 
Method Summary
 int getCount()
           
 T getItem()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumeratedItem

public EnumeratedItem(int count,
                      T item)
Method Detail

getCount

public int getCount()
Returns:
the enumeration counter value for this item

getItem

public T getItem()
Returns:
the iterated item itself