|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chromattic.common.collection.AdaptingIterator<O,I>
O - the outter typeI - the inner typepublic class AdaptingIterator<O,I>
An iterator that adapts a type to another type.
| Constructor Summary | |
|---|---|
AdaptingIterator(java.util.Iterator<I> iterator,
TypeAdapter<O,I> adapter)
Build a new adapting iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
O |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdaptingIterator(java.util.Iterator<I> iterator,
TypeAdapter<O,I> adapter)
throws java.lang.NullPointerException
iterator - the iteratoradapter - the adapter
java.lang.NullPointerException - if any argument is null| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<O>public O next()
next in interface java.util.Iterator<O>public void remove()
remove in interface java.util.Iterator<O>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||