|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorbital.util.SequenceIterator
public class SequenceIterator
A SequenceIterator represents the logical concatenation of other iterators. It starts out with a list of iterators and reads from the first one until the end is reached, whereupon it reads from the second one, and so on, until the end is reached on the last of the contained iterators.
SequenceInputStream,
Serialized Form| Constructor Summary | |
|---|---|
SequenceIterator(java.util.Iterator iterators)
Create a new sequence iterator over an iterator of iterators. |
|
SequenceIterator(java.util.Iterator[] iterators)
Create a new sequence iterator over an array of iterators. |
|
SequenceIterator(java.util.List iterators)
Create a new sequence iterator over a list of iterators. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceIterator(java.util.Iterator iterators)
iterators - is an iterator over iterators whose elements this SequenceIterator will provide,
one after one.public SequenceIterator(java.util.List iterators)
Note that modifying iterators will result in a ConcurrentModificationException at runtime, as per general contract of list iterators.
iterators - is a list of iterators whose elements this SequenceIterator will provide,
one after one.public SequenceIterator(java.util.Iterator[] iterators)
iterators - is an array of iterators whose elements this SequenceIterator will provide,
one after one.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||