package com.googlecode.objectify.util;
import com.google.appengine.api.datastore.Cursor;
import com.google.appengine.api.datastore.Index;
import com.google.appengine.api.datastore.QueryResultIterator;
import java.util.List;
/**
* QueryResultIterator wrapper that translates from one type to another
*
* @author Jeff Schnitzer <jeff@infohazard.org>
*/
abstract public class TranslatingQueryResultIterator<F, T> extends TranslatingIterator<F, T> implements QueryResultIterator<T>
{
/** */
public TranslatingQueryResultIterator(QueryResultIterator<F> base)
{
super(base);
}
@Override
public Cursor getCursor()
{
return ((QueryResultIterator<F>)this.base).getCursor();
}
@Override
public List<Index> getIndexList()
{
return ((QueryResultIterator<F>)this.base).getIndexList();
}
}