package com.getbase.android.db.loaders;

import com.google.common.base.Function;

import android.database.Cursor;

import java.util.AbstractList;

public class LazyCursorList<T> extends AbstractList<T> {

  private final Cursor cursor;
  private final Function<Cursor, T> transformation;

  public LazyCursorList(Cursor cursor, Function<Cursor, T> function) {
    this.cursor = cursor;
    this.transformation = function;
  }

  @Override
  public T get(int i) {
    // TODO - caching.
    cursor.moveToPosition(i);
    return transformation.apply(cursor);
  }

  @Override
  public int size() {
    return cursor.getCount();
  }
}

@@ -140,23 +140,16 @@
 tList;%0A%0A
-public 
 class La

Make LazyCursorList package protected class