Package wt.fc.collections
Interface WTList
- All Superinterfaces:
Collection,Iterable,List,WTCollection
- All Known Implementing Classes:
wt.fc.collections.AbstractWTList,WTArrayList
A WTCollection that implements the java.util.List interface.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given object at the given index.voidadd(int index, Persistable p) Adds the given object at the given index.voidAdds the given object at the given index.voidadd(int index, WTReference ref) Adds the given object at the given index.booleanaddAll(int index, Collection c) Adds the given collection of objects at the given index.voidconnect(int index, Persistable p, WTCollection source) Connects the given object from the source collection to this collection, at the given index.voidconnect(int index, QueryKey query_key, WTCollection source) Connects the given object from the source collection to this collection, at the given index.voidconnect(int index, WTReference ref, WTCollection source) Connects the given object from the source collection to this collection, at the given index.booleanconnectAll(int index, WTCollection c) Connects the objects in the source collection to this collection, starting at the given index.get(int index) Gets the WTReference at the specified index.getPersistable(int index) Gets the Persistable at the specified index.getQueryKey(int index) Gets the QueryKey at the specified index.getReference(int index) Gets the WTReference at the specified index.intGets the index of the given object.intGets the index of the given object.intindexOf(WTReference ref) Gets the index of the given object.intGets the last index of the given object.intlastIndexOf(QueryKey query_key) Gets the last index of the given object.intlastIndexOf(WTReference ref) Gets the last index of the given object.Returns a ListIterator over the WTReferences in this list, per the contract of referenceListIterator().listIterator(int index) Returns a ListIterator over the WTReferences in this list starting at the given index, per the contract of referenceListIterator(int).Returns a ListIterator over the Persistables in this list.persistableListIterator(int index) Returns a ListIterator over the Persistables in this list, starting at the given index.Returns a ListIterator over the QueryKeys in this list.queryKeyListIterator(int index) Returns a ListIterator over the QueryKeys in this list, starting at the given index.Returns a ListIterator over the WTReferences in this list.referenceListIterator(int index) Returns a ListIterator over the WTReferences in this list, starting at the given index.Assigns the object to the given index.set(int index, Persistable p) Sets the object at the given index.Sets the object at the given index.set(int index, WTReference ref) Sets the object at the given index.subList(int from_index, int to_index) Returns a sublist of backed by this WTList, per the contract ofList.subList(int,int)
Supported API: trueMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, remove, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayMethods inherited from interface wt.fc.collections.WTCollection
add, add, add, add, addAll, addAll, classIterator, connect, connect, connect, connectAll, contains, contains, contains, contains, containsInstance, containsOnly, deflate, getKeyMask, inflate, isEnabled, iterator, persistableCollection, persistableIterator, queryKeyIterator, referenceIterator, remove, remove, remove, remove, removeAll, retainAll, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray
-
Method Details
-
add
Adds the given object at the given index. SeeWTCollection.add(Object)for further documentation
Supported API: true -
add
Adds the given object at the given index. SeeWTCollection.add(Object)for further documentation
Supported API: true- Parameters:
index-p-
-
add
Adds the given object at the given index. SeeWTCollection.add(Object)for further documentation
Supported API: true- Parameters:
index-query_key-
-
add
Adds the given object at the given index. SeeWTCollection.add(Object)for further documentation
Supported API: true- Parameters:
index-ref-
-
addAll
Adds the given collection of objects at the given index. SeeWTCollection.add(Object)for further documentation
Supported API: true -
connect
Connects the given object from the source collection to this collection, at the given index.
Supported API: true- Parameters:
index-p-source-- See Also:
-
connect
Connects the given object from the source collection to this collection, at the given index.
Supported API: true- Parameters:
index-query_key-source-- See Also:
-
connect
Connects the given object from the source collection to this collection, at the given index.
Supported API: true- Parameters:
index-ref-source-- See Also:
-
connectAll
Connects the objects in the source collection to this collection, starting at the given index.
Supported API: true- Parameters:
index-c-- Returns:
- true If this operation modifies the collection
- See Also:
-
get
Gets the WTReference at the specified index.
Supported API: true -
getPersistable
Gets the Persistable at the specified index. If the Persistable is not inflated, this method will go to the database to get it. Implementations may choose to have this cause an inflate of the entire list.
Supported API: true- Parameters:
index-- Returns:
- A Persistable
- Throws:
WTException
-
getQueryKey
Gets the QueryKey at the specified index.
Supported API: true- Parameters:
index-- Returns:
- A QueryKey
-
getReference
Gets the WTReference at the specified index.
Supported API: true- Parameters:
index-- Returns:
- A WTReference
-
indexOf
Gets the index of the given object.
Supported API: true- Parameters:
query_key-- Returns:
- int
- See Also:
-
indexOf
Gets the index of the given object.
Supported API: true- Parameters:
p-- Returns:
- int
- See Also:
-
indexOf
Gets the index of the given object.
Supported API: true- Parameters:
ref-- Returns:
- int
- See Also:
-
lastIndexOf
Gets the last index of the given object.
Supported API: true- Parameters:
query_key-- Returns:
- int
- See Also:
-
lastIndexOf
Gets the last index of the given object.
Supported API: true- Parameters:
p-- Returns:
- int
- See Also:
-
lastIndexOf
Gets the last index of the given object.
Supported API: true- Parameters:
ref-- Returns:
- int
- See Also:
-
listIterator
ListIterator listIterator()Returns a ListIterator over the WTReferences in this list, per the contract of referenceListIterator().
Supported API: true- Specified by:
listIteratorin interfaceList- Returns:
- A ListIterator of WTReferences
-
listIterator
Returns a ListIterator over the WTReferences in this list starting at the given index, per the contract of referenceListIterator(int).
Supported API: true- Specified by:
listIteratorin interfaceList- Parameters:
index-- Returns:
- A ListIterator of WTReferences
-
persistableListIterator
Returns a ListIterator over the Persistables in this list. Refreshes the collection in the same manner asWTCollection.persistableIterator().
Supported API: true- Returns:
- A ListIterator of Persistables
- Throws:
WTException
-
persistableListIterator
Returns a ListIterator over the Persistables in this list, starting at the given index. Refreshes the collection in the same manner asWTCollection.persistableIterator().
Supported API: true- Parameters:
index-- Returns:
- A ListIterator of Persistables
- Throws:
WTException
-
queryKeyListIterator
ListIterator queryKeyListIterator()Returns a ListIterator over the QueryKeys in this list.
Supported API: true- Returns:
- A ListIterator of QueryKeys
-
queryKeyListIterator
Returns a ListIterator over the QueryKeys in this list, starting at the given index.
Supported API: true- Parameters:
index-- Returns:
- A ListIterator of QueryKeys
-
referenceListIterator
ListIterator referenceListIterator()Returns a ListIterator over the WTReferences in this list.
Supported API: true- Returns:
- A ListIterator of WTReferences
-
referenceListIterator
Returns a ListIterator over the WTReferences in this list, starting at the given index.
Supported API: true- Parameters:
index-- Returns:
- A ListIterator of WTReferences
-
set
Assigns the object to the given index.
Supported API: true- Specified by:
setin interfaceList- Parameters:
index-o-- Returns:
- Object
- Throws:
ClassCastException- per the constraints ofWTCollection.add(Object)
-
set
Sets the object at the given index. Seeset(int, Object)for further documentation.
Supported API: true- Parameters:
index-p-- Returns:
- Persistable
-
set
Sets the object at the given index. Seeset(int, Object)for further documentation.
Supported API: true- Parameters:
index-query_key-- Returns:
- QueryKey
-
set
Sets the object at the given index. Seeset(int, Object)for further documentation.
Supported API: true- Parameters:
index-ref-- Returns:
- WTReference
-
subList
Returns a sublist of backed by this WTList, per the contract ofList.subList(int,int)
Supported API: true
-