public class PacketLinkedListIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
PacketLinkedListIterator(Listnode<T> head)
Constructs a PacketLinkedListIterator by passing a head node of
PacketLinkedList.
|
public T next()
next in interface java.util.Iterator<T>java.util.NoSuchElementException - if the iteration has no more elementspublic boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>java.lang.UnsupportedOperationException - if the remove operation is not supported by this iterator