E
- Entity type.public class LazyList<E>
extends java.lang.Object
implements java.util.List<E>, java.io.Closeable
Modifier and Type | Class and Description |
---|---|
protected class |
LazyList.LazyIterator |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E object) |
void |
add(int location,
E object) |
boolean |
addAll(java.util.Collection<? extends E> arg0) |
boolean |
addAll(int arg0,
java.util.Collection<? extends E> arg1) |
protected void |
checkCached() |
void |
clear() |
void |
close() |
boolean |
contains(java.lang.Object object) |
boolean |
containsAll(java.util.Collection<?> collection) |
E |
get(int location) |
int |
getLoadedCount() |
int |
indexOf(java.lang.Object object) |
boolean |
isClosed() |
boolean |
isEmpty() |
boolean |
isLoadedCompletely() |
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object object) |
CloseableListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int location) |
CloseableListIterator<E> |
listIteratorAutoClose()
Closes this list's cursor once the iterator is fully iterated through.
|
protected E |
loadEntity(int location)
Lock must be locked when entering this method.
|
void |
loadRemaining()
Loads the remaining entities (if any) that were not loaded before.
|
E |
peak(int location)
Like get but does not load the entity if it was not loaded before.
|
E |
remove(int location) |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> arg0) |
boolean |
retainAll(java.util.Collection<?> arg0) |
E |
set(int location,
E object) |
int |
size() |
java.util.List<E> |
subList(int start,
int end) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
public void loadRemaining()
protected void checkCached()
public E peak(int location)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public boolean isClosed()
public int getLoadedCount()
public boolean isLoadedCompletely()
public boolean add(E object)
public boolean addAll(java.util.Collection<? extends E> arg0)
public boolean addAll(int arg0, java.util.Collection<? extends E> arg1)
addAll
in interface java.util.List<E>
public void clear()
public boolean contains(java.lang.Object object)
public boolean containsAll(java.util.Collection<?> collection)
protected E loadEntity(int location)
public int indexOf(java.lang.Object object)
indexOf
in interface java.util.List<E>
public boolean isEmpty()
public java.util.Iterator<E> iterator()
public int lastIndexOf(java.lang.Object object)
lastIndexOf
in interface java.util.List<E>
public CloseableListIterator<E> listIterator()
listIterator
in interface java.util.List<E>
public CloseableListIterator<E> listIteratorAutoClose()
public java.util.ListIterator<E> listIterator(int location)
listIterator
in interface java.util.List<E>
public boolean remove(java.lang.Object object)
public boolean removeAll(java.util.Collection<?> arg0)
public boolean retainAll(java.util.Collection<?> arg0)
public int size()
public java.util.List<E> subList(int start, int end)
subList
in interface java.util.List<E>
public java.lang.Object[] toArray()
Available under the Apache License, Version 2.0 - Copyright © 2011-2015 greenrobot.de. All Rights Reserved.