| 
 | 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.Base
       com.tangosol.util.AbstractKeyBasedMap
com.tangosol.util.AbstractKeyBasedMap
           com.tangosol.util.KeyValueArrayMap
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_aoKeyThe array containing map keys. | 
| protected  java.lang.Object[] | m_aoValueThe array containing map values. | 
| protected  int | m_cSizeThe number of map entries. | 
| protected  int | m_iKeyThe index into the key array of the first key. | 
| protected  int | m_iValueThe 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 values
public 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 entries| Method Detail | 
|---|
public java.lang.Object get(java.lang.Object oKey)
get in interface java.util.Mapget in class AbstractKeyBasedMapoKey - the key objectprotected java.util.Iterator iterateKeys()
iterateKeys in class AbstractKeyBasedMappublic int size()
size in interface java.util.Mapsize 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 | |||||||