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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Itr
public Itr(java.util.List list,
int modCount)
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