|
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.Base
com.tangosol.util.AbstractKeyBasedMap
com.tangosol.util.KeyValueArrayMap
public class KeyValueArrayMap
KeyValueArrayMap is a Map implementation backed by an array of keys, and an array of the associated values.
This implementation:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.util.AbstractKeyBasedMap |
---|
AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.KeySet, AbstractKeyBasedMap.ValuesCollection |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry |
Field Summary | |
---|---|
protected java.lang.Object[] |
m_aoKey The array containing map keys. |
protected java.lang.Object[] |
m_aoValue The array containing map values. |
protected int |
m_cSize The number of map entries. |
protected int |
m_iKey The index into the key array of the first key. |
protected int |
m_iValue The index into the value array of the first value. |
Constructor Summary | |
---|---|
KeyValueArrayMap(java.lang.Object[] aoKey, int iKey, java.lang.Object[] aoValue, int iValue, int cSize) Construct a KeyValueArrayMap backed by ranges of the specified key and value arrays. |
|
KeyValueArrayMap(java.lang.Object[] aoKey, java.lang.Object[] aoValue) Construct a KeyValueArrayMap backed by the specified key and value arrays. |
Method Summary | |
---|---|
java.lang.Object |
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. |
int |
size() Returns the number of key-value mappings in this map. |
Methods inherited from class com.tangosol.util.AbstractKeyBasedMap |
---|
clear, clone, containsKey, containsValue, entrySet, equals, getAll, hashCode, instantiateEntrySet, instantiateKeySet, instantiateValues, isEmpty, keySet, put, putAll, remove, removeBlind, toString, values |
Field Detail |
---|
protected java.lang.Object[] m_aoKey
protected java.lang.Object[] m_aoValue
protected int m_iKey
protected int m_iValue
protected int m_cSize
Constructor Detail |
---|
public KeyValueArrayMap(java.lang.Object[] aoKey, java.lang.Object[] aoValue)
aoKey
- the array of keysaoValue
- the array of valuespublic KeyValueArrayMap(java.lang.Object[] aoKey, int iKey, java.lang.Object[] aoValue, int iValue, int cSize)
aoKey
- the array of keysiKey
- the index of the first keyaoValue
- the array of valuesiValue
- the index of the first valuecSize
- the number of entriesMethod Detail |
---|
public java.lang.Object get(java.lang.Object oKey)
get
in interface java.util.Map
get
in class AbstractKeyBasedMap
oKey
- the key objectprotected java.util.Iterator iterateKeys()
iterateKeys
in class AbstractKeyBasedMap
public int size()
size
in interface java.util.Map
size
in class AbstractKeyBasedMap
|
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 |