|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.util.TranslatingIterator<F,T>
public abstract class TranslatingIterator<F,T>
Iterator wrapper that translates from one type to another
Field Summary | |
---|---|
protected java.util.Iterator<F> |
base
|
Constructor Summary | |
---|---|
TranslatingIterator(java.util.Iterator<F> base)
|
Method Summary | |
---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
protected abstract T |
translate(F from)
You implement this - convert from one object to the other |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Iterator<F> base
Constructor Detail |
---|
public TranslatingIterator(java.util.Iterator<F> base)
Method Detail |
---|
protected abstract T translate(F from)
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |