Package com.googlecode.objectify.util
Class TranslatingIterator<F,T>
- java.lang.Object
-
- com.googlecode.objectify.util.TranslatingIterator<F,T>
-
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
TranslatingQueryResults
public abstract class TranslatingIterator<F,T> extends Object implements Iterator<T>
Iterator wrapper that translates from one type to another- Author:
- Jeff Schnitzer
-
-
Constructor Summary
Constructors Constructor Description TranslatingIterator(Iterator<F> base)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-