|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.phoenixst.collections.IteratorChain
public class IteratorChain
A chain of Iterators
. The one in Jakarta
commons-collections doesn't work.
This is similar to the class of the same name in Jakarta Commons-Collections 3.0. This implementation is missing all of the locking and safeguards of the other one. This implementation fixes a bug in version 2.1 where hasNext() would return false if the first iterator was empty, but subsequent ones were not.
Constructor Summary | |
---|---|
IteratorChain(Collection iterators)
Creates a new IteratorChain . |
|
IteratorChain(Iterator[] iterators)
Creates a new IteratorChain . |
|
IteratorChain(Iterator first,
Iterator second)
Creates a new IteratorChain . |
Method Summary | |
---|---|
boolean |
hasNext()
|
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 IteratorChain(Iterator[] iterators)
IteratorChain
.
public IteratorChain(Collection iterators)
IteratorChain
.
public IteratorChain(Iterator first, Iterator second)
IteratorChain
.
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
public void remove()
remove
in interface Iterator
|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |