| 
 | 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
   com.tangosol.util.MultiBinaryLongMap.WrapperBinaryLongMap
com.tangosol.util.MultiBinaryLongMap.WrapperBinaryLongMap
       com.tangosol.util.MultiBinaryLongMap.SafeBinaryLongMap
com.tangosol.util.MultiBinaryLongMap.SafeBinaryLongMap
           com.tangosol.util.MultiBinaryLongMap.PrimaryBinaryLongMap.CompressedPrimaryBinaryLongMap
com.tangosol.util.MultiBinaryLongMap.PrimaryBinaryLongMap.CompressedPrimaryBinaryLongMap
protected class MultiBinaryLongMap.PrimaryBinaryLongMap.CompressedPrimaryBinaryLongMap
The CompressedPrimaryBinaryLongMap is a trivial "Safe" wrapper around the main key-tree, which associates keys to their single (primary) long value.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class com.tangosol.util.MultiBinaryLongMap.WrapperBinaryLongMap | 
|---|
| MultiBinaryLongMap.WrapperBinaryLongMap.WrapperIterator | 
| Nested classes/interfaces inherited from interface com.tangosol.util.BinaryLongMap | 
|---|
| BinaryLongMap.Entry, BinaryLongMap.EntryVisitor, BinaryLongMap.SimpleMapImpl | 
| Field Summary | 
|---|
| Fields inherited from class com.tangosol.util.MultiBinaryLongMap.SafeBinaryLongMap | 
|---|
| f_lockExclusive, f_lockShared | 
| Fields inherited from class com.tangosol.util.MultiBinaryLongMap.WrapperBinaryLongMap | 
|---|
| m_blm | 
| Constructor Summary | |
|---|---|
| MultiBinaryLongMap.PrimaryBinaryLongMap.CompressedPrimaryBinaryLongMap(BinaryLongMap blmKeyTree, java.util.concurrent.locks.ReentrantReadWriteLock rwLock)Construct a CompressedPrimaryBinaryLongMap. | |
| Method Summary | |
|---|---|
|  void | clear()Initialize the map to an empty state. | 
|  void | put(Binary binKey, long lValue)Blindly store the passed value for the specified key, adding the key if it is not already in the map, or replacing the current value if the key is in the map. | 
|  boolean | putIfAbsent(Binary binKey, long lValue)Store the passed value for the specified key, only if the key does not currently exist in the map. | 
|  void | remove(Binary binKey)Blindly remove the specified Binary key from the map. | 
|  boolean | remove(Binary binKey, long lValue)Remove the specified Binary key from the map iff it exists in the map and is associated with the specified value. | 
| Methods inherited from class com.tangosol.util.MultiBinaryLongMap.SafeBinaryLongMap | 
|---|
| get, getMap, internKeys, keys, keys, release, replace, size, visit, visitAll | 
| Methods inherited from class com.tangosol.util.MultiBinaryLongMap.WrapperBinaryLongMap | 
|---|
| setMap | 
| Constructor Detail | 
|---|
public MultiBinaryLongMap.PrimaryBinaryLongMap.CompressedPrimaryBinaryLongMap(BinaryLongMap blmKeyTree,
                                                                              java.util.concurrent.locks.ReentrantReadWriteLock rwLock)
blmKeyTree - the BinaryLongMap holding the keys for the outer MultiBinaryLongMaprwLock - the master ReadWriteReentrantLock| Method Detail | 
|---|
public void put(Binary binKey,
                long lValue)
Note that associating the value zero with a key is analogous to removing the key.
put in interface BinaryLongMapput in class MultiBinaryLongMap.SafeBinaryLongMapbinKey - the Binary key to add or updatelValue - the value to associate with the key
public boolean putIfAbsent(Binary binKey,
                           long lValue)
Note that associating the value zero with a key using this method will have no effect, since were that key already present, there would be no change, and were it not present, the value zero is analogous to removing the key, which again is no change (since it is not present).
putIfAbsent in interface BinaryLongMapputIfAbsent in class MultiBinaryLongMap.SafeBinaryLongMapbinKey - a Binary keylValue - the new value to associate with the passed keypublic void remove(Binary binKey)
remove in interface BinaryLongMapremove in class MultiBinaryLongMap.SafeBinaryLongMapbinKey - a Binary key
public boolean remove(Binary binKey,
                      long lValue)
Note that removing an association whose value is zero has no effect.
remove in interface BinaryLongMapremove in class MultiBinaryLongMap.SafeBinaryLongMapbinKey - a Binary keylValue - the value that the key must have in order to be removedpublic void clear()
clear in interface BinaryLongMapclear in class MultiBinaryLongMap.SafeBinaryLongMap| 
 | 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 | |||||||