|
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
com.tangosol.util.Base
com.tangosol.util.ConverterCollections.ConverterMap
public static class ConverterCollections.ConverterMap
A Converter Map views an underlying Map through a set of key and value Converters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry |
Field Summary | |
---|---|
protected Converter |
m_convKeyDown The Converter used to pass keys down to the Map. |
protected Converter |
m_convKeyUp The Converter used to view keys stored in the Map. |
protected Converter |
m_convValDown The Converter used to pass keys down to the Map. |
protected Converter |
m_convValUp The Converter used to view values stored in the Map. |
protected java.util.Map |
m_map The underlying Map. |
protected java.util.Set |
m_set The Entry Set. |
Constructor Summary | |
---|---|
ConverterCollections.ConverterMap(java.util.Map map, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown) Constructor. |
Method Summary | |
---|---|
void |
clear() Removes all mappings from this map. |
boolean |
containsKey(java.lang.Object key) Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(java.lang.Object value) Returns true if this map maps one or more keys to the specified value. |
java.util.Set |
entrySet() Returns a set view of the mappings contained in this map. |
boolean |
equals(java.lang.Object o) Compares the specified object with this map for equality. |
java.lang.Object |
get(java.lang.Object key) Returns the value to which this map maps the specified key. |
Converter |
getConverterKeyDown() Return the Converter used to pass keys down to the underlying Map. |
Converter |
getConverterKeyUp() Return the Converter used to view the underlying Map's keys through. |
Converter |
getConverterValueDown() Return the Converter used to pass values down to the underlying Map. |
Converter |
getConverterValueUp() Return the Converter used to view the underlying Map's values through. |
java.util.Map |
getMap() Return the underlying Map. |
int |
hashCode() Returns the hash code value for this map. |
protected java.util.Collection |
instantiateCollection(java.util.Collection col, Converter convUp, Converter convDown) Create a Converter Collection. |
protected java.util.Set |
instantiateEntrySet(java.util.Set set, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown) Create a Converter Entry Set. |
protected java.util.Map |
instantiateMap(java.util.Map map, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown) Create a Converter Map. |
protected java.util.Set |
instantiateSet(java.util.Set set, Converter convUp, Converter convDown) Create a Converter Set. |
boolean |
isEmpty() Returns true if this map contains no key-value mappings. |
java.util.Set |
keySet() Returns a set view of the keys contained in this map. |
java.lang.Object |
put(java.lang.Object key, java.lang.Object value) Associates the specified value with the specified key in this map. |
void |
putAll(java.util.Map map) Copies all of the mappings from the specified map to this map. |
java.lang.Object |
remove(java.lang.Object key) Removes the mapping for this key from this map if present. |
int |
size() Returns the number of key-value mappings in this map. |
java.lang.String |
toString() Return a String description for this Map. |
java.util.Collection |
values() Returns a collection view of the values contained in this map. |
Field Detail |
---|
protected java.util.Map m_map
protected Converter m_convKeyUp
protected Converter m_convKeyDown
protected Converter m_convValUp
protected Converter m_convValDown
protected transient java.util.Set m_set
Constructor Detail |
---|
public ConverterCollections.ConverterMap(java.util.Map map, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown)
map
- the underlying MapconvKeyUp
- the Converter to view the underlying Map's keys throughconvKeyDown
- the Converter to use to pass keys down to the underlying MapconvValUp
- the Converter to view the underlying Map's values throughconvValDown
- the Converter to use to pass values down to the underlying MapMethod Detail |
---|
public int size()
size
in interface java.util.Map
public boolean isEmpty()
isEmpty
in interface java.util.Map
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
key
- key whose presence in this map is to be testedpublic boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
value
- value whose presence in this map is to be testedpublic java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
key
- key whose associated value is to be returnedMap.containsKey(Object)
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified keyjava.lang.ClassCastException
- if the class of the specified key or value prevents it from being stored in this map.public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
key
- key whose mapping is to be removed from the mappublic void putAll(java.util.Map map)
putAll
in interface java.util.Map
map
- Mappings to be stored in this mapjava.lang.ClassCastException
- if the class of a key or value in the specified map prevents it from being stored in this mappublic void clear()
clear
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
public java.lang.String toString()
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
o
- object to be compared for equality with this map.public int hashCode()
hashCode
in interface java.util.Map
Map.Entry.hashCode()
, Object.hashCode()
, Object.equals(Object)
, Map.equals(Object)
protected java.util.Collection instantiateCollection(java.util.Collection col, Converter convUp, Converter convDown)
col
- the underlying CollectionconvUp
- the Converter to view the underlying Collection throughconvDown
- the Converter to pass items down to the underlying Collection throughprotected java.util.Set instantiateSet(java.util.Set set, Converter convUp, Converter convDown)
set
- the underlying SetconvUp
- the Converter to view the underlying Set throughconvDown
- the Converter to pass items down to the underlying Set throughprotected java.util.Map instantiateMap(java.util.Map map, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown)
map
- the underlying MapconvKeyUp
- the Converter to view the underlying Map's keys throughconvKeyDown
- the Converter to use to pass keys down to the underlying MapconvValUp
- the Converter to view the underlying Map's values throughconvValDown
- the Converter to use to pass values down to the underlying Mapprotected java.util.Set instantiateEntrySet(java.util.Set set, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown)
set
- the underlying Map Entry SetconvKeyUp
- the Converter to view the underlying Map's Entry Set's keys throughconvKeyDown
- the Converter to use to pass keys down to the underlying Map's Entry SetconvValUp
- the Converter to view the underlying Map's Entry Set's values throughconvValDown
- the Converter to use to pass values down to the underlying Map's Entry Setpublic java.util.Map getMap()
public Converter getConverterKeyUp()
public Converter getConverterKeyDown()
public Converter getConverterValueUp()
public Converter getConverterValueDown()
|
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 |