| 
 | 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
public static class MultiBinaryLongMap.WrapperBinaryLongMap
The WrapperBinaryLongMap is a BinaryLongMap implementation that wraps an underlying BinaryLongMap.
| Nested Class Summary | |
|---|---|
| protected  class | MultiBinaryLongMap.WrapperBinaryLongMap.WrapperIteratorA wrapper key Iterator that implements Iterator.remove()by coming back through the WrapperBinaryLongMap'sremove(Binary)method. | 
| Nested classes/interfaces inherited from interface com.tangosol.util.BinaryLongMap | 
|---|
| BinaryLongMap.Entry, BinaryLongMap.EntryVisitor, BinaryLongMap.SimpleMapImpl | 
| Field Summary | |
|---|---|
| protected  BinaryLongMap | m_blmThe underlying BinaryLongMap. | 
| Constructor Summary | |
|---|---|
| MultiBinaryLongMap.WrapperBinaryLongMap(BinaryLongMap blm)Construct a WrapperBinaryLongMap based on the specified BinaryLongMap. | |
| Method Summary | |
|---|---|
|  void | clear()Initialize the map to an empty state. | 
|  long | get(Binary binKey)Find the specified key in the map and return the value associated with it. | 
|  BinaryLongMap | getMap()Return the underlying BinaryLongMap. | 
|  void | internKeys(java.lang.Object o)Internal opaque method: De-duplicate keys. | 
|  java.util.Iterator | keys()Obtain an iterator of the keys stored in the map. | 
|  java.util.Iterator | keys(com.oracle.common.base.Predicate predicate)Obtain an iterator of the keys stored in the map whose corresponding Entrymatches the passedPredicate<Entry>. | 
|  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. | 
|  boolean | replace(Binary binKey, long lValueOld, long lValueNew)Store the passed "new" value for the specified key, only if the current value associated with the specified key is the same as the specified "old" value. | 
| protected  void | setMap(BinaryLongMap blm)Return the underlying BinaryLongMap. | 
|  int | size()Determine the size of the map. | 
|  void | visit(Binary binKey, BinaryLongMap.EntryVisitor visitor)Apply the specified visitor to the entry associated with the specified key, if the entry exists or may be added. | 
|  void | visitAll(BinaryLongMap.EntryVisitor visitor)Apply the specified visitor to all entries in the BinaryLongMap. | 
| Field Detail | 
|---|
protected BinaryLongMap m_blm
| Constructor Detail | 
|---|
public MultiBinaryLongMap.WrapperBinaryLongMap(BinaryLongMap blm)
blm - the BinaryLongMap to wrap| Method Detail | 
|---|
public BinaryLongMap getMap()
protected void setMap(BinaryLongMap blm)
blm - the underlying BinaryLongMappublic long get(Binary binKey)
get in interface BinaryLongMapbinKey - a Binary key
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 BinaryLongMapbinKey - 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 BinaryLongMapbinKey - a Binary keylValue - the new value to associate with the passed key
public boolean replace(Binary binKey,
                       long lValueOld,
                       long lValueNew)
Note that replacing the value of zero is analogous to putIfAbsent, and associating the value zero with a key using this method is the same as remove passing the old value to match.
replace in interface BinaryLongMapbinKey - a Binary keylValueOld - the assumed old value to replacelValueNew - the new value to associate with the passed keypublic void remove(Binary binKey)
remove in interface BinaryLongMapbinKey - 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 BinaryLongMapbinKey - a Binary keylValue - the value that the key must have in order to be removedpublic void clear()
clear in interface BinaryLongMappublic int size()
size in interface BinaryLongMappublic java.util.Iterator keys()
keys in interface BinaryLongMappublic java.util.Iterator keys(com.oracle.common.base.Predicate predicate)
Entry matches the passed Predicate<Entry>.
The entry passed to the predicate should be treated as read-only, and any attempt to modify the entry may have undefined behavior and/or throw an Exception. Modifications to entries should instead be performed using an BinaryLongMap.EntryVisitor via the BinaryLongMap.visit(com.tangosol.util.Binary, com.tangosol.util.BinaryLongMap.EntryVisitor) or BinaryLongMap.visitAll(com.tangosol.util.BinaryLongMap.EntryVisitor) methods.
keys in interface BinaryLongMappredicate - a Predicate<Entry> to apply to each Entry
public void visit(Binary binKey,
                  BinaryLongMap.EntryVisitor visitor)
BinaryLongMap.Entry.setValue(long)).visit in interface BinaryLongMapbinKey - the key to visitvisitor - the visitor to applypublic void visitAll(BinaryLongMap.EntryVisitor visitor)
visitAll in interface BinaryLongMapvisitor - the visitor to applypublic void internKeys(java.lang.Object o)
internKeys in interface BinaryLongMapo - some implementation-specific object| 
 | 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 | |||||||