|
||||||||||
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
org.netbeans.mdr.persistence.btreeimpl.btreestorage.VirtualList
public class 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)
nm
- The name of the btree repository to createpublic VirtualList(java.util.Map properties, ObjectResolver resolver)
Method Detail |
---|
public void delete()
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractList
index
- The index of the element to get
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
set
in class java.util.AbstractList
index
- the index to setelement
- the element to set the index to
public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class java.util.AbstractList
the
- index at which to ass itelement
- the element to addpublic java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.AbstractList
index
- Where to remove the element
public void changed(int index)
the
- index of the changed element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |