|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
net.ontopia.persistence.proxy.TrackableSet
public class TrackableSet
INTERNAL: A set implementation that track the changes performed on it. It keeps track of the objects that have been added and the ones that has been removed.
| Field Summary | |
|---|---|
protected Set |
added
|
protected Set |
removed
|
protected TransactionIF |
txn
|
| Constructor Summary | |
|---|---|
TrackableSet(TransactionIF txn,
Collection coll)
|
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addWithTracking(Object _o)
INTERNAL: Adds the item to the collection tracking the change. |
void |
clear()
|
void |
clearWithTracking()
INTERNAL: Removes all items from the collection tracking the changes. |
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
void |
dump()
|
Collection |
getAdded()
INTERNAL: Gets the objects that have been added to the set. |
Collection |
getRemoved()
INTERNAL: Gets the objects that have been removed from the set. |
Iterator |
iterator()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
removeWithTracking(Object _o)
INTERNAL: Removes the item from the collection tracking the change. |
void |
resetTracking()
INTERNAL: Clears the list of added and removed objects without touching the original collection. |
boolean |
retainAll(Collection c)
|
void |
selfAdded()
INTERNAL: Consider existing collection elements as having just been added. |
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
| Methods inherited from class java.util.HashSet |
|---|
clone, isEmpty, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode, isEmpty, size |
| Methods inherited from interface java.util.Set |
|---|
equals, hashCode |
| Field Detail |
|---|
protected TransactionIF txn
protected Set added
protected Set removed
| Constructor Detail |
|---|
public TrackableSet(TransactionIF txn,
Collection coll)
| Method Detail |
|---|
public void dump()
public void resetTracking()
TrackableCollectionIF
resetTracking in interface TrackableCollectionIFpublic void selfAdded()
TrackableCollectionIF
selfAdded in interface TrackableCollectionIFpublic Collection getAdded()
TrackableCollectionIF
getAdded in interface TrackableCollectionIFpublic Collection getRemoved()
TrackableCollectionIF
getRemoved in interface TrackableCollectionIFpublic boolean addWithTracking(Object _o)
TrackableCollectionIF
addWithTracking in interface TrackableCollectionIFpublic boolean removeWithTracking(Object _o)
TrackableCollectionIF
removeWithTracking in interface TrackableCollectionIFpublic void clearWithTracking()
TrackableCollectionIF
clearWithTracking in interface TrackableCollectionIFpublic void clear()
clear in interface Collectionclear in interface Setclear in class HashSetpublic boolean add(Object o)
add in interface Collectionadd in interface Setadd in class HashSetpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface SetaddAll in class AbstractCollectionpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setremove in class HashSetpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractSetpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface SetretainAll in class AbstractCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class HashSetpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setcontains in class HashSetpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface SetcontainsAll in class AbstractCollectionpublic Object[] toArray()
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||