public class MultiListIterator
extends java.lang.Object
implements java.util.Iterator
List
-s. The elements of a list that was
added earlier will be iterated earlier.Constructor and Description |
---|
MultiListIterator() |
MultiListIterator(java.util.List ls1) |
MultiListIterator(java.util.List ls1,
java.util.List ls2) |
MultiListIterator(java.util.List ls1,
java.util.List ls2,
java.util.List ls3) |
MultiListIterator(java.util.List ls1,
java.util.List ls2,
java.util.List ls3,
java.util.List ls4) |
Modifier and Type | Method and Description |
---|---|
void |
addList(java.util.List ls)
Use this to add more lists after the constructor.
|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
public MultiListIterator()
public MultiListIterator(java.util.List ls1)
public MultiListIterator(java.util.List ls1, java.util.List ls2)
public MultiListIterator(java.util.List ls1, java.util.List ls2, java.util.List ls3)
public MultiListIterator(java.util.List ls1, java.util.List ls2, java.util.List ls3, java.util.List ls4)
public void addList(java.util.List ls)
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator