import java.util.Iterator;
public class IntHppcWrappers {
public static IntIterator cursorToIntIterator(final Iterator<IntCursor> cursor) {
return new IntFindingIterator() {
@Override
protected boolean findNext() {
if (!cursor.hasNext()) return false;
myNext = cursor.next().value;
return true;