public class VirtualList
extends java.util.AbstractList
| Constructor and Description |
|---|
VirtualList(java.util.Map properties,
ObjectResolver resolver) |
VirtualList(java.lang.String fileName,
ObjectResolver resolver)
Create a VirtualList
|
| Modifier and Type | Method and Description |
|---|---|
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
|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic VirtualList(java.lang.String fileName,
ObjectResolver resolver)
nm - The name of the btree repository to createpublic VirtualList(java.util.Map properties,
ObjectResolver resolver)
public void delete()
public java.lang.Object get(int index)
get in interface java.util.Listget in class java.util.AbstractListindex - The index of the element to getpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionpublic java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listset in class java.util.AbstractListindex - the index to setelement - the element to set the index topublic void add(int index,
java.lang.Object element)
add in interface java.util.Listadd in class java.util.AbstractListthe - index at which to ass itelement - the element to addpublic java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.AbstractListindex - Where to remove the elementpublic void changed(int index)
the - index of the changed element.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.