|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
wt.fc.collections.AbstractWTCollection
wt.fc.collections.AbstractWTList
wt.fc.collections.WTArrayList.OffSetList
Nested Class Summary | |
(package private) class |
WTArrayList.OffSetList.OffsetIterator
|
Nested classes inherited from class wt.fc.collections.AbstractWTList |
|
Nested classes inherited from class wt.fc.collections.AbstractWTCollection |
AbstractWTCollection.PersistableCollection |
Field Summary | |
(package private) int |
expectedModCount
|
(package private) ReferenceMap |
map
|
(package private) int |
offset
|
(package private) AbstractWTList |
source
|
Fields inherited from class wt.fc.collections.AbstractWTList |
|
Fields inherited from class wt.fc.collections.AbstractWTCollection |
|
Fields inherited from interface wt.fc.collections.WTCollection |
DEFLATED_ON_SERIALIZATION |
Constructor Summary | |
(package private) |
WTArrayList.OffSetList(AbstractWTList a_Source,
int from_index,
int to_index)
|
Method Summary | |
void |
add(int index,
WTReference ref)
Supported API: false |
Iterator |
classIterator()
Returns an iterator over the classes that have instances in this collection. |
void |
connect(int index,
WTReference ref,
WTCollection c)
Supported API: false |
boolean |
containsInstance(Class filter)
Returns true if there is at least one object in the collection that the filter class is assignable from. |
int |
getKeyMask()
Returns this collection's key mask. |
(package private) int |
getModCount()
|
Persistable |
getPersistable(int index)
Supported API: false |
QueryKey |
getQueryKey(int index)
Supported API: false |
WTReference |
getReference(int index)
Supported API: false |
boolean |
isDeflatedOnSerialization()
Gets the value of the attribute: DEFLATED_ON_SERIALIZATION. |
private void |
modCheck()
|
Iterator |
persistableIterator()
Returns an iterator over the objects in this collection, as Persistables. |
Iterator |
persistableIterator(Class filter,
boolean include_subclasses)
Refines persistableIterator() to only return objects that are either direct or descendent instances of the filter class, depending on the value of include_subclasses. |
ListIterator |
persistableListIterator(int index)
Supported API: false |
Iterator |
queryKeyIterator()
Returns an iterator over the QueryKeys in this collection. |
Iterator |
queryKeyIterator(Class filter,
boolean include_subclasses)
Refines queryKeyIterator() to only return keys that are either direct or descendent instances of the filter class, depending on the value of include_subclasses. |
ListIterator |
queryKeyListIterator(int index)
Supported API: false |
private void |
rangeCheck(int index)
|
(package private) void |
referenceAdded(WTReference r)
|
Iterator |
referenceIterator()
Returns an Iterator over the objects in this collection, as WTReferences. |
Iterator |
referenceIterator(Class filter,
boolean include_subclasses)
Refines referenceIterator() to only return references that are either direct or descendent instances of the filter class, depending on the value of include_subclasses. |
ListIterator |
referenceListIterator(int index)
Supported API: false |
(package private) void |
referenceRemoved(WTReference r)
|
Object |
remove(int index)
Supported API: false |
WTReference |
set(int index,
WTReference ref)
Supported API: false |
int |
size()
|
WTCollection |
subCollection(Class filter,
boolean include_subclasses)
Returns a sub collection of all the objects in this collection that are either direct or descendent instances of the filter class, depending on the value of include_subclasses. |
List |
subList(int fromIndex,
int toIndex)
Supported API: false |
(package private) Object |
writeReplace()
Externalize as a plain WTArrayList |
Methods inherited from class wt.fc.collections.AbstractWTList |
add, add, add, add, add, add, addAll, addAll, connect, connect, connect, connectAll, equals, get, indexOf, indexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, listIterator, listIterator, persistableListIterator, queryKeyListIterator, referenceListIterator, set, set, set |
Methods inherited from class wt.fc.collections.AbstractWTCollection |
add, addAll, connect, connect, connect, connect, connect, connect, connectAll, connectAll, contains, contains, contains, contains, containsNonPersisted, containsOnly, deflate, getIteratorListener, getLastReturnedReference, getReference, getReference, getReference, getReferences, hashCode, inflate, isEnabled, iterator, persistableCollection, remove, remove, remove, remove, removeAll, removeNonPersisted, retainAll, setDeflatedOnSerialization, setLastReturnedReference, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
Methods inherited from class java.util.AbstractCollection |
clear, containsAll, isEmpty, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.collections.WTList |
connect, connect, connect |
Methods inherited from interface wt.fc.collections.WTCollection |
add, addAll, connect, connect, connect, connectAll, connectAll, contains, contains, contains, contains, containsOnly, deflate, inflate, isEnabled, iterator, persistableCollection, remove, remove, remove, remove, removeAll, retainAll, setDeflatedOnSerialization, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
Methods inherited from interface java.util.Collection |
clear, containsAll, hashCode, isEmpty, removeAll, retainAll |
Methods inherited from interface java.util.List |
add, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
Field Detail |
AbstractWTList source
int offset
int expectedModCount
ReferenceMap map
Constructor Detail |
WTArrayList.OffSetList(AbstractWTList a_Source, int from_index, int to_index)
Method Detail |
Object writeReplace() throws ObjectStreamException
ObjectStreamException
private void rangeCheck(int index)
private void modCheck()
void referenceAdded(WTReference r)
referenceAdded
in class AbstractWTCollection
void referenceRemoved(WTReference r)
referenceRemoved
in class AbstractWTCollection
public void add(int index, WTReference ref)
AbstractWTList
add
in interface WTList
add
in class AbstractWTList
index
- ref
- public void connect(int index, WTReference ref, WTCollection c)
AbstractWTList
connect
in interface WTList
connect
in class AbstractWTList
index
- ref
- c
- public Iterator classIterator()
WTCollection
classIterator
in interface WTCollection
classIterator
in class AbstractWTCollection
public boolean containsInstance(Class filter)
WTCollection
containsInstance
in interface WTCollection
containsInstance
in class AbstractWTCollection
filter
-
public int getKeyMask()
WTCollection
getKeyMask
in interface WTCollection
getKeyMask
in class AbstractWTCollection
public Persistable getPersistable(int index) throws WTException
AbstractWTList
getPersistable
in interface WTList
getPersistable
in class AbstractWTList
index
-
WTException
public QueryKey getQueryKey(int index)
AbstractWTList
getQueryKey
in interface WTList
getQueryKey
in class AbstractWTList
index
-
public WTReference getReference(int index)
AbstractWTList
getReference
in interface WTList
getReference
in class AbstractWTList
index
-
public boolean isDeflatedOnSerialization()
WTCollection
true
, this collection only serializes QueryKeys
for objects that have them. Objects without QueryKeys are still serialized.
This property defaults to false and is transient to force callers
to explicitly enable it, to avoid unintentional deflations.
isDeflatedOnSerialization
in interface WTCollection
isDeflatedOnSerialization
in class AbstractWTCollection
public Iterator persistableIterator() throws WTException
WTCollection
persistableIterator
in interface WTCollection
persistableIterator
in class AbstractWTCollection
WTException
public Iterator persistableIterator(Class filter, boolean include_subclasses) throws WTException
WTCollection
If a refresh is necessary, implementations should only refresh objects
of the given filter class, rather than all the objects in the collection.
Supported API: false
persistableIterator
in interface WTCollection
persistableIterator
in class AbstractWTCollection
filter
- include_subclasses
-
WTException
public ListIterator persistableListIterator(int index) throws WTException
AbstractWTList
persistableListIterator
in interface WTList
persistableListIterator
in class AbstractWTList
index
-
WTException
public Iterator queryKeyIterator()
WTCollection
queryKeyIterator
in interface WTCollection
queryKeyIterator
in class AbstractWTCollection
public Iterator queryKeyIterator(Class filter, boolean include_subclasses)
WTCollection
queryKeyIterator
in interface WTCollection
queryKeyIterator
in class AbstractWTCollection
filter
- include_subclasses
-
public ListIterator queryKeyListIterator(int index)
AbstractWTList
queryKeyListIterator
in interface WTList
queryKeyListIterator
in class AbstractWTList
index
-
public Iterator referenceIterator()
WTCollection
referenceIterator
in interface WTCollection
referenceIterator
in class AbstractWTCollection
public Iterator referenceIterator(Class filter, boolean include_subclasses)
WTCollection
referenceIterator
in interface WTCollection
referenceIterator
in class AbstractWTCollection
filter
- include_subclasses
-
public ListIterator referenceListIterator(int index)
AbstractWTList
referenceListIterator
in interface WTList
referenceListIterator
in class AbstractWTList
index
-
public Object remove(int index)
AbstractWTList
remove
in interface List
remove
in class AbstractWTList
index
-
public WTReference set(int index, WTReference ref)
AbstractWTList
set
in interface WTList
set
in class AbstractWTList
index
- ref
-
public int size()
size
in interface Collection
public WTCollection subCollection(Class filter, boolean include_subclasses)
WTCollection
subCollection
in interface WTCollection
subCollection
in class AbstractWTCollection
filter
- include_subclasses
-
public List subList(int fromIndex, int toIndex)
AbstractWTList
subList
in interface WTList
subList
in class AbstractWTList
fromIndex
- toIndex
-
int getModCount()
getModCount
in class AbstractWTList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |