diff --git a/DaoCore/src/main/java/org/greenrobot/greendao/query/LazyList.java b/DaoCore/src/main/java/org/greenrobot/greendao/query/LazyList.java index 032ad7af2..d80c67b70 100644 --- a/DaoCore/src/main/java/org/greenrobot/greendao/query/LazyList.java +++ b/DaoCore/src/main/java/org/greenrobot/greendao/query/LazyList.java @@ -22,6 +22,7 @@ import java.util.List; import java.util.ListIterator; import java.util.NoSuchElementException; +import java.util.RandomAccess; import java.util.concurrent.locks.ReentrantLock; import android.database.Cursor; @@ -42,7 +43,7 @@ * @param * Entity type. */ -public class LazyList implements List, Closeable { +public class LazyList implements List, Closeable, RandomAccess { protected class LazyIterator implements CloseableListIterator { private int index; private final boolean closeWhenDone;