com.glaivestone.javax.util
Class Itr

java.lang.Object
  |
  +--com.glaivestone.javax.util.Itr
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
AssociationItr

public class Itr
extends java.lang.Object
implements java.util.Iterator

An Iterator used for List objects.

This class is adapted from java.util.AbstractList$Itr in order to facilitate creating simple custom Iterator by subclassing.

Version:
1.0
Author:
Gary Gregory

Constructor Summary
Itr(java.util.List list, int modCount)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Itr

public Itr(java.util.List list,
           int modCount)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

GFL 1.1 API