|
|||||||||||
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.WTKeyedHashMap.KeySet
Nested Class Summary |
Nested classes inherited from class wt.fc.collections.AbstractWTCollection |
AbstractWTCollection.PersistableCollection |
Field Summary |
Fields inherited from class wt.fc.collections.AbstractWTCollection |
|
Fields inherited from interface wt.fc.collections.WTCollection |
DEFLATED_ON_SERIALIZATION |
Constructor Summary | |
(package private) |
WTKeyedHashMap.KeySet()
|
Method Summary | |
Iterator |
classIterator()
Returns an iterator over the classes that have instances in this collection. |
void |
clear()
|
(package private) boolean |
connect(WTReference r,
boolean add)
Add the reference to the collection's internal data structures |
boolean |
contains(QueryKey id)
Determines if the collection contains the given object in some form. |
boolean |
contains(WTReference ref)
Determines if the collection contains the given object in some form. |
boolean |
containsInstance(Class filter)
Returns true if there is at least one object in the collection that the filter class is assignable from. |
protected boolean |
containsNonPersisted(Persistable p)
Attempts to remove the given non-persisted Persistable from the collection. |
int |
getKeyMask()
Returns this collection's key mask. |
WTReference |
getReference(Persistable p)
Get a reference used internally by this collection that refers to the given Persistable. |
WTReference |
getReference(QueryKey q)
Get a reference used internally by this collection that refers to the given key. |
WTReference |
getReference(WTReference r)
Get a reference used internally by this collection that refers to the same object as the given reference. |
WTReference[] |
getReferences(WTReference r)
Get all the references used internally by this collection that refers to the given reference. |
Collection |
persistableCollection()
Provides a Persistable-based view of the objects in this WTCollection. |
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. |
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. |
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. |
void |
referenceRemoved(WTReference r)
|
boolean |
remove(QueryKey id)
Removes the object from this collection. |
boolean |
remove(WTReference ref)
Removes the object from this collection. |
boolean |
removeAll(Class filter,
boolean include_subclasses)
Removes all objects in this collection that are assignable from the given class. |
protected boolean |
removeNonPersisted(Persistable p)
Attempts to remove the given non-persisted Persistable from the collection. |
boolean |
retainAll(Class filter,
boolean include_subclasses)
Removes all objects in this collection that are not assignable from the given class. |
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. |
(package private) Object |
writeReplace()
Externalize a key set as a plain WTHashSet |
Methods inherited from class wt.fc.collections.AbstractWTCollection |
add, add, add, add, addAll, addAll, connect, connect, connect, connect, connect, connect, connectAll, connectAll, contains, contains, containsOnly, deflate, equals, getIteratorListener, getLastReturnedReference, hashCode, inflate, isDeflatedOnSerialization, isEnabled, iterator, referenceAdded, remove, remove, setDeflatedOnSerialization, setLastReturnedReference, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
Methods inherited from class java.util.AbstractCollection |
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.WTCollection |
add, add, add, add, addAll, addAll, connect, connect, connect, connect, connect, connect, connectAll, connectAll, contains, contains, containsOnly, deflate, inflate, isDeflatedOnSerialization, isEnabled, iterator, remove, remove, setDeflatedOnSerialization, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
Methods inherited from interface java.util.Collection |
containsAll, equals, hashCode, isEmpty, removeAll, retainAll |
Methods inherited from interface java.util.Set |
add, addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
WTKeyedHashMap.KeySet()
Method Detail |
Object writeReplace() throws ObjectStreamException
ObjectStreamException
public Iterator classIterator()
WTCollection
classIterator
in interface WTCollection
classIterator
in class AbstractWTCollection
public void clear()
clear
in interface Collection
boolean connect(WTReference r, boolean add)
AbstractWTCollection
connect
in class AbstractWTCollection
public boolean contains(QueryKey id)
WTCollection
WTCollection.contains(Object)
for further documentation.
contains
in interface WTCollection
contains
in class AbstractWTCollection
id
-
protected boolean containsNonPersisted(Persistable p)
AbstractWTCollection
containsNonPersisted
in class AbstractWTCollection
p
-
public boolean contains(WTReference ref)
WTCollection
WTCollection.contains(Object)
for further documentation.
contains
in interface WTCollection
contains
in class AbstractWTCollection
ref
-
public boolean containsInstance(Class filter)
WTCollection
containsInstance
in interface WTCollection
containsInstance
in class AbstractWTCollection
filter
-
public void referenceRemoved(WTReference r)
referenceRemoved
in class AbstractWTCollection
public WTReference getReference(Persistable p)
ReferenceBased
getReference
in interface ReferenceBased
getReference
in class AbstractWTCollection
p
-
public WTReference getReference(QueryKey q)
ReferenceBased
getReference
in interface ReferenceBased
getReference
in class AbstractWTCollection
q
-
public WTReference getReference(WTReference r)
ReferenceBased
getReference
in interface ReferenceBased
getReference
in class AbstractWTCollection
r
-
public WTReference[] getReferences(WTReference r)
ReferenceBased
getReferences
in interface ReferenceBased
getReferences
in class AbstractWTCollection
r
-
public int getKeyMask()
WTCollection
getKeyMask
in interface WTCollection
getKeyMask
in class AbstractWTCollection
public Collection persistableCollection()
WTCollection
The resulting collection is backed by this collection, so changes
to one are reflected in the other.
Supported API: true
persistableCollection
in interface WTCollection
persistableCollection
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 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 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
-
protected boolean removeNonPersisted(Persistable p)
AbstractWTCollection
removeNonPersisted
in class AbstractWTCollection
p
-
public boolean remove(WTReference ref)
WTCollection
WTCollection.remove(Object)
for further documentation. See WTCollection.remove(Object)
for further
documentation.
remove
in interface WTCollection
remove
in class AbstractWTCollection
ref
-
public boolean remove(QueryKey id)
WTCollection
WTCollection.remove(Object)
for further documentation. See WTCollection.remove(Object)
for further
documentation.
remove
in interface WTCollection
remove
in class AbstractWTCollection
id
-
public boolean removeAll(Class filter, boolean include_subclasses)
WTCollection
removeAll
in interface WTCollection
removeAll
in class AbstractWTCollection
filter
- include_subclasses
-
public boolean retainAll(Class filter, boolean include_subclasses)
WTCollection
retainAll
in interface WTCollection
retainAll
in class AbstractWTCollection
filter
- include_subclasses
-
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
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |