Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class BinaryLongMap.SimpleMapImpl

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.AbstractKeyBasedMap
          extended by com.tangosol.util.BinaryLongMap.SimpleMapImpl

All Implemented Interfaces:
java.util.Map
Enclosing interface:
BinaryLongMap

public static class BinaryLongMap.SimpleMapImpl
extends AbstractKeyBasedMap

A java.util.Map<Binary, Long> implementation. This is a simple wrapper around a BinaryLongMap.


Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.util.AbstractKeyBasedMap
AbstractKeyBasedMap.DeferredCacheEvent, AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.KeySet, AbstractKeyBasedMap.ValuesCollection

 

Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry

 

Constructor Summary
BinaryLongMap.SimpleMapImpl()
          Construct a SimpleMapImpl using a BinaryRadixTree as the internal storage.
BinaryLongMap.SimpleMapImpl(BinaryLongMap blm)
          Construct a SimpleMapImpl around an existing BinaryLongMap.

 

Method Summary
 void clear()
          Clear all key/value mappings.
 boolean containsKey(java.lang.Object oKey)
          Returns true if this map contains a mapping for the specified key.
 java.lang.Long get(java.lang.Object oKey)
          Returns the value to which this map maps the specified key.
protected  java.util.Iterator iterateKeys()
          Create an iterator over the keys in this Map.
 java.lang.Long put(java.lang.Object oKey, java.lang.Object oValue)
          Associates the specified value with the specified key in this map.
 java.lang.Long remove(java.lang.Object oKey)
          Removes the mapping for this key from this map if present.
 int size()
          Returns the number of key-value mappings in this map.

 

Methods inherited from class com.tangosol.util.AbstractKeyBasedMap
clone, containsValue, entrySet, equals, getAll, hashCode, instantiateEntrySet, instantiateKeySet, instantiateValues, isEmpty, keySet, putAll, removeBlind, toString, values

 

Constructor Detail

BinaryLongMap.SimpleMapImpl

public BinaryLongMap.SimpleMapImpl()
Construct a SimpleMapImpl using a BinaryRadixTree as the internal storage.

BinaryLongMap.SimpleMapImpl

public BinaryLongMap.SimpleMapImpl(BinaryLongMap blm)
Construct a SimpleMapImpl around an existing BinaryLongMap.
Parameters:
blm - the BinaryLongMap to use as the storage for this map

Method Detail

clear

public void clear()
Clear all key/value mappings.
Specified by:
clear in interface java.util.Map
Overrides:
clear in class AbstractKeyBasedMap

containsKey

public boolean containsKey(java.lang.Object oKey)
Returns true if this map contains a mapping for the specified key.
Specified by:
containsKey in interface java.util.Map
Overrides:
containsKey in class AbstractKeyBasedMap
Returns:
true if this map contains a mapping for the specified key, false otherwise.

get

public java.lang.Long get(java.lang.Object oKey)
Returns the value to which this map maps the specified key.
Specified by:
get in interface java.util.Map
Specified by:
get in class AbstractKeyBasedMap
Parameters:
oKey - the key object
Returns:
the value to which this map maps the specified key, or null if the map contains no mapping for this key

put

public java.lang.Long put(java.lang.Object oKey,
                          java.lang.Object oValue)
Associates the specified value with the specified key in this map.
Specified by:
put in interface java.util.Map
Overrides:
put in class AbstractKeyBasedMap
Parameters:
oKey - key with which the specified value is to be associated
oValue - value to be associated with the specified key
Returns:
previous value associated with specified key, or null if there was no mapping for key

remove

public java.lang.Long remove(java.lang.Object oKey)
Removes the mapping for this key from this map if present. Expensive: updates both the underlying cache and the local cache.
Specified by:
remove in interface java.util.Map
Overrides:
remove in class AbstractKeyBasedMap
Parameters:
oKey - key whose mapping is to be removed from the map
Returns:
previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key, if the implementation supports null values.

size

public int size()
Returns the number of key-value mappings in this map.
Specified by:
size in interface java.util.Map
Overrides:
size in class AbstractKeyBasedMap
Returns:
the number of key-value mappings in this map

iterateKeys

protected java.util.Iterator iterateKeys()
Create an iterator over the keys in this Map. The Iterator must support remove() if the Map supports removal.
Specified by:
iterateKeys in class AbstractKeyBasedMap
Returns:
a new instance of an Iterator over the keys in this Map

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.