|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<T>
org.rutil.collection.FileBackedArrayList<T>
public class FileBackedArrayList<T extends java.io.Serializable>
An array list backed by a file store where the indexes are stored in memory and the actual values are stored in a file. Useful to store large values that are accessed by their index and/or accessed sequentially.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
FileBackedArrayList(SerializableObjectsFile<T> file)
|
|
| Method Summary | |
|---|---|
boolean |
add(T e)
|
long |
addAndGetPosition(T e)
|
void |
clear()
|
T |
get(int index)
|
java.util.ListIterator<T> |
listIterator(int index)
|
T |
removeAt(int index)
|
T |
set(int index,
T value)
|
int |
size()
|
void |
trim()
|
| Methods inherited from class java.util.AbstractSequentialList |
|---|
add, addAll, iterator, remove |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, addAll, addAll, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, retainAll, subList, toArray, toArray |
| Constructor Detail |
|---|
public FileBackedArrayList(SerializableObjectsFile<T> file)
| Method Detail |
|---|
public int size()
size in interface java.util.Collection<T extends java.io.Serializable>size in interface java.util.List<T extends java.io.Serializable>size in class java.util.AbstractCollection<T extends java.io.Serializable>public boolean add(T e)
add in interface java.util.Collection<T extends java.io.Serializable>add in interface java.util.List<T extends java.io.Serializable>add in class java.util.AbstractList<T extends java.io.Serializable>public long addAndGetPosition(T e)
public T set(int index,
T value)
throws java.lang.UnsupportedOperationException
set in interface java.util.List<T extends java.io.Serializable>set in class java.util.AbstractSequentialList<T extends java.io.Serializable>java.lang.UnsupportedOperationExceptionpublic T get(int index)
get in interface java.util.List<T extends java.io.Serializable>get in class java.util.AbstractSequentialList<T extends java.io.Serializable>public T removeAt(int index)
public void clear()
clear in interface java.util.Collection<T extends java.io.Serializable>clear in interface java.util.List<T extends java.io.Serializable>clear in class java.util.AbstractList<T extends java.io.Serializable>public void trim()
public java.util.ListIterator<T> listIterator(int index)
listIterator in interface java.util.List<T extends java.io.Serializable>listIterator in class java.util.AbstractSequentialList<T extends java.io.Serializable>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||