|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-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.SubSet
com.tangosol.util.UnsafeSubSet
public class UnsafeSubSet
The UnsafeSubSet is a SubSet which assumes that the backing set already contains all of the keys that would be retained or removed.
This could be used for indexes (as an example), since all indexed keys also must be contained in the backing map.
Nested Class Summary | |
---|---|
protected static class |
UnsafeSubSet.WrapperSet The WrapperSet wraps a Set to provide a hook for initialization. |
Nested classes/interfaces inherited from class com.tangosol.util.SubSet |
---|
SubSet.SubSetIterator |
Constructor Summary | |
---|---|
UnsafeSubSet(java.util.Set set) Construct this set based on the assigned set. |
Method Summary | |
---|---|
UnsafeSubSet.WrapperSet |
getOriginal() Determine what items were in the original set. |
boolean |
isModified() Determine if the set has been modified. |
boolean |
removeAll(java.util.Collection col) Removes all this collection's elements that are also contained in the specified collection (optional operation). |
void |
reset() Discard the changes to the set ("rollback"). |
void |
resolve() Apply the changes to the underlying set ("commit"). |
boolean |
retainAll(java.util.Collection col) Retains only the elements in this collection that are contained in the specified collection (optional operation). |
Methods inherited from class com.tangosol.util.SubSet |
---|
add, addAll, clear, clone, contains, containsAll, ensureRemoved, ensureRetained, getRemoved, getRetained, isEmpty, isTrackingRemoved, isTrackingRetained, iterator, remove, resetState, size, toArray, toArray |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
toString |
Constructor Detail |
---|
public UnsafeSubSet(java.util.Set set)
set
- the WrapperSet to base this StableSubSet onMethod Detail |
---|
public UnsafeSubSet.WrapperSet getOriginal()
getOriginal
in class SubSet
public void resolve()
resolve
in class SubSet
public boolean isModified()
isModified
in class SubSet
public void reset()
reset
in class SubSet
public boolean removeAll(java.util.Collection col)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.Set
removeAll
in class SubSet
col
- elements to be removed from this collectionAbstractCollection.remove(Object)
, AbstractCollection.contains(Object)
public boolean retainAll(java.util.Collection col)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.Set
retainAll
in class SubSet
col
- elements to be retained in this collection.AbstractCollection.remove(Object)
, AbstractCollection.contains(Object)
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |