|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
com.tangosol.util.DeltaSet
public class DeltaSet
Implements a set which is based on another set, which is assumed to be immutable.
| Nested Class Summary | |
|---|---|
protected class |
DeltaSet.DeltaIteratorIterator for the contents of a delta set. |
| Constructor Summary | |
|---|---|
DeltaSet(java.util.Set set)Construct this set based on an existing set. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)Ensures that this Collection contains the specified element. |
void |
clear()Removes all of the elements from this Collection. |
java.lang.Object |
clone()Clone the delta set. |
boolean |
contains(java.lang.Object o)Returns true if this Collection contains the specified element. |
protected java.util.Set |
ensureAdded()Get a mutable set of items that were added to the delta set. |
protected java.util.Set |
ensureRemoved()Get a mutable set of items that were removed from the delta set. |
java.util.Set |
getAdded()Determine what items were added to the delta set. |
java.util.Set |
getOriginal()Determine what items were in the original set. |
java.util.Set |
getRemoved()Determine what items were removed from the delta set. |
boolean |
isModified()Determine if any items were added or removed. |
java.util.Iterator |
iterator()Returns an Iterator over the elements contained in this Collection. |
boolean |
remove(java.lang.Object o)Removes a single instance of the specified element from this Collection, if it is present (optional operation). |
void |
reset()Discard the changes to the set ("rollback"). |
void |
resolve()Apply the changes to the underlying set ("commit"). |
int |
size()Returns the number of elements in this Collection. |
java.lang.Object[] |
toArray()Returns an array containing all of the elements in this Set. |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, isEmpty, retainAll, toArray, toString |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, isEmpty, retainAll, toArray |
| Constructor Detail |
|---|
public DeltaSet(java.util.Set set)
set - the set to base this delta set on| Method Detail |
|---|
public java.util.Set getOriginal()
public boolean isModified()
public java.util.Set getAdded()
public java.util.Set getRemoved()
protected java.util.Set ensureAdded()
protected java.util.Set ensureRemoved()
public void resolve()
public void reset()
public java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Setiterator in class java.util.AbstractCollectionpublic int size()
size in interface java.util.Collectionsize in interface java.util.Setsize in class java.util.AbstractCollectionpublic boolean contains(java.lang.Object o)
e such that (o==null ? e==null : o.equals(e)).contains in interface java.util.Collectioncontains in interface java.util.Setcontains in class java.util.AbstractCollectiono - the object to search for in the setpublic boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Setadd in class java.util.AbstractCollectiono - element whose presence in this Collection is to be ensuredpublic boolean remove(java.lang.Object o)
e such that (o==null ? e==null : o.equals(e)), if the Collection contains one or more such elements. Returns true if the Collection contained the specified element (or equivalently, if the Collection changed as a result of the call).remove in interface java.util.Collectionremove in interface java.util.Setremove in class java.util.AbstractCollectiono - element to be removed from this Collection, if presentpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Setclear in class java.util.AbstractCollectionpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.SettoArray in class java.util.AbstractCollectionpublic java.lang.Object clone()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||