|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A WTCollection that implements the java.util.List interface.
Supported API: true
Extendable: false
Field Summary |
Fields inherited from interface wt.fc.collections.WTCollection |
DEFLATED_ON_SERIALIZATION |
Method Summary | |
void |
add(int index,
Object o)
Adds the given object at the given index. |
void |
add(int index,
Persistable p)
Adds the given object at the given index. |
void |
add(int index,
QueryKey query_key)
Adds the given object at the given index. |
void |
add(int index,
WTReference ref)
Adds the given object at the given index. |
boolean |
addAll(int index,
Collection c)
Adds the given collection of objects at the given index. |
void |
connect(int index,
Persistable p,
WTCollection source)
Connects the given object from the source collection to this collection, at the given index. |
void |
connect(int index,
QueryKey query_key,
WTCollection source)
Connects the given object from the source collection to this collection, at the given index. |
void |
connect(int index,
WTReference ref,
WTCollection source)
Connects the given object from the source collection to this collection, at the given index. |
boolean |
connect(Persistable p,
WTCollection source)
Connects the given object from the source collection to this collection. |
boolean |
connect(QueryKey query_key,
WTCollection source)
Connects the given object from the source collection to this collection. |
boolean |
connect(WTReference ref,
WTCollection source)
Connects the given object from the source collection to this collection. |
boolean |
connectAll(int index,
WTCollection c)
Connects the objects in the source collection to this collection, starting at the given index. |
Object |
get(int index)
Gets the WTReference at the specified index. |
Persistable |
getPersistable(int index)
Gets the Persistable at the specified index. |
QueryKey |
getQueryKey(int index)
Gets the QueryKey at the specified index. |
WTReference |
getReference(int index)
Gets the WTReference at the specified index. |
int |
indexOf(Persistable p)
Gets the index of the given object. |
int |
indexOf(QueryKey query_key)
Gets the index of the given object. |
int |
indexOf(WTReference ref)
Gets the index of the given object. |
int |
lastIndexOf(Persistable p)
Gets the last index of the given object. |
int |
lastIndexOf(QueryKey query_key)
Gets the last index of the given object. |
int |
lastIndexOf(WTReference ref)
Gets the last index of the given object. |
ListIterator |
listIterator()
Returns a ListIterator over the WTReferences in this list, per the contract of referenceListIterator(). |
ListIterator |
listIterator(int index)
Returns a ListIterator over the WTReferences in this list starting at the given index, per the contract of referenceListIterator(int). |
ListIterator |
persistableListIterator()
Returns a ListIterator over the Persistables in this list. |
ListIterator |
persistableListIterator(int index)
Returns a ListIterator over the Persistables in this list, starting at the given index. |
ListIterator |
queryKeyListIterator()
Returns a ListIterator over the QueryKeys in this list. |
ListIterator |
queryKeyListIterator(int index)
Returns a ListIterator over the QueryKeys in this list, starting at the given index. |
ListIterator |
referenceListIterator()
Returns a ListIterator over the WTReferences in this list. |
ListIterator |
referenceListIterator(int index)
Returns a ListIterator over the WTReferences in this list, starting at the given index. |
Object |
set(int index,
Object o)
Assigns the object to the given index. |
Persistable |
set(int index,
Persistable p)
Sets the object at the given index. |
QueryKey |
set(int index,
QueryKey query_key)
Sets the object at the given index. |
WTReference |
set(int index,
WTReference ref)
Sets the object at the given index. |
List |
subList(int from_index,
int to_index)
Returns a sublist of backed by this WTList, per the contract of List.subList(int,int)
Supported API: true |
Methods inherited from interface wt.fc.collections.WTCollection |
add, add, add, add, addAll, addAll, classIterator, connect, connect, connect, connectAll, connectAll, contains, contains, contains, contains, containsInstance, containsOnly, deflate, getKeyMask, inflate, isDeflatedOnSerialization, isEnabled, iterator, persistableCollection, persistableIterator, persistableIterator, queryKeyIterator, queryKeyIterator, referenceIterator, referenceIterator, remove, remove, remove, remove, removeAll, retainAll, setDeflatedOnSerialization, subCollection, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
Methods inherited from interface java.util.Collection |
clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size |
Methods inherited from interface java.util.List |
add, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, remove, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
public void add(int index, Object o)
WTCollection.add(Object)
for further documentation
add
in interface List
index
- o
- public void add(int index, Persistable p)
WTCollection.add(Object)
for further documentation
index
- p
- public void add(int index, QueryKey query_key)
WTCollection.add(Object)
for further documentation
index
- query_key
- public void add(int index, WTReference ref)
WTCollection.add(Object)
for further documentation
index
- ref
- public boolean addAll(int index, Collection c)
WTCollection.add(Object)
for further documentation
addAll
in interface List
index
- c
-
public void connect(int index, Persistable p, WTCollection source)
index
- p
- source
- WTCollection.connect(Persistable, WTCollection)
public void connect(int index, QueryKey query_key, WTCollection source)
index
- query_key
- source
- WTCollection.connect(Persistable, WTCollection)
public void connect(int index, WTReference ref, WTCollection source)
index
- ref
- source
- WTCollection.connect(Persistable, WTCollection)
public boolean connectAll(int index, WTCollection c)
index
- c
-
WTCollection.connectAll(WTCollection)
public Object get(int index)
get
in interface List
index
-
public Persistable getPersistable(int index) throws WTException
index
-
WTException
public QueryKey getQueryKey(int index)
index
-
public WTReference getReference(int index)
index
-
public int indexOf(QueryKey query_key)
query_key
-
List.indexOf(Object)
public int indexOf(Persistable p)
p
-
List.indexOf(Object)
public int indexOf(WTReference ref)
ref
-
List.indexOf(Object)
public int lastIndexOf(QueryKey query_key)
query_key
-
List.lastIndexOf(Object)
public int lastIndexOf(Persistable p)
p
-
List.lastIndexOf(Object)
public int lastIndexOf(WTReference ref)
ref
-
List.lastIndexOf(Object)
public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int index)
listIterator
in interface List
index
-
public ListIterator persistableListIterator() throws WTException
WTCollection.persistableIterator()
.
WTException
public ListIterator persistableListIterator(int index) throws WTException
WTCollection.persistableIterator()
.
index
-
WTException
public ListIterator queryKeyListIterator()
public ListIterator queryKeyListIterator(int index)
index
-
public ListIterator referenceListIterator()
public ListIterator referenceListIterator(int index)
index
-
public Object set(int index, Object o)
set
in interface List
index
- o
-
ClassCastException
- per the constraints of WTCollection.add(Object)
public Persistable set(int index, Persistable p)
set(int, Object)
for further documentation.
index
- p
-
public QueryKey set(int index, QueryKey query_key)
set(int, Object)
for further documentation.
index
- query_key
-
public WTReference set(int index, WTReference ref)
set(int, Object)
for further documentation.
index
- ref
-
public List subList(int from_index, int to_index)
List.subList(int,int)
subList
in interface List
from_index
- to_index
-
public boolean connect(Persistable p, WTCollection source)
connect
in interface WTCollection
p
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this collection
ClassCastException
- If this collection does not support connection
with the source's implementation of WTCollection.WTCollection.add(Object)
public boolean connect(QueryKey query_key, WTCollection source)
connect
in interface WTCollection
query_key
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this collection
ClassCastException
- If this collection does not support connection
with the source's implementation of WTCollection.WTCollection.add(Object)
public boolean connect(WTReference ref, WTCollection source)
connect
in interface WTCollection
ref
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this collection
ClassCastException
- If this collection does not support connection
with the source's implementation of WTCollection.WTCollection.add(Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |