net.walend.collection
Class MultiIterator
java.lang.Object
|
+--net.walend.collection.MultiIterator
- All Implemented Interfaces:
- java.util.Iterator
- public class MultiIterator
- extends java.lang.Object
- implements java.util.Iterator
An implementation of Iterator built up from other iterators.
- Since:
- 20010111
- Author:
- David Walend
Field Summary |
private java.util.Iterator |
bigIt
|
private java.util.Iterator |
current
|
private java.util.Set |
set
|
Method Summary |
boolean |
add(java.util.Iterator it)
Add iterators |
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 |
set
private java.util.Set set
bigIt
private java.util.Iterator bigIt
current
private java.util.Iterator current
MultiIterator
public MultiIterator()
add
public boolean add(java.util.Iterator it)
- Add iterators
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
Copyright (c) 2000, 2001, David Walend