|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.netbeans.mdr.persistence.btreeimpl.btreestorage.VirtualList
An implementation of List which uses a btree database as a backing store. This allows arrays which which not otherwise fit in memory. To use a Virtual List:
Field Summary |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
VirtualList(java.util.Map properties,
ObjectResolver resolver)
|
|
VirtualList(java.lang.String fileName,
ObjectResolver resolver)
Create a VirtualList |
Method Summary | |
void |
add(int index,
java.lang.Object element)
Add a new element to the list |
void |
changed(int index)
mark the elemenet at the given index changed |
void |
delete()
Delete the VirtualList's backing repository |
java.lang.Object |
get(int index)
Get the specified element |
java.lang.Object |
remove(int index)
Remove ana element from the list |
java.lang.Object |
set(int index,
java.lang.Object element)
Set the element at the specified index |
int |
size()
Get the number of elements in the list |
Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, 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 |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
public VirtualList(java.lang.String fileName, ObjectResolver resolver)
public VirtualList(java.util.Map properties, ObjectResolver resolver)
Method Detail |
public void delete()
public java.lang.Object get(int index)
index
- The index of the element to get
public int size()
public java.lang.Object set(int index, java.lang.Object element)
index
- the index to setelement
- the element to set the index to
public void add(int index, java.lang.Object element)
element
- the element to addpublic java.lang.Object remove(int index)
index
- Where to remove the element
public void changed(int index)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |