private class BoundedList.BoundedIterator
extends java.lang.Object
implements java.util.Iterator<T>, java.lang.Iterable<T>
Modifier and Type | Field and Description |
---|---|
private BoundedList.INode<T> |
current |
private BoundedList.INode<T> |
last |
private int |
size |
Constructor and Description |
---|
BoundedIterator(int size,
BoundedList.INode<T> first,
BoundedList.INode<T> last) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
java.util.Iterator<T> |
iterator() |
T |
next() |
void |
remove() |
java.lang.String |
toString() |
private final int size
private BoundedList.INode<T> current
private final BoundedList.INode<T> last
BoundedIterator(int size, BoundedList.INode<T> first, BoundedList.INode<T> last)
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public java.lang.String toString()
toString
in class java.lang.Object