public class KeyValueArrayMap extends AbstractKeyBasedMap
This implementation:
AbstractKeyBasedMap.DeferredCacheEvent<K,V>, AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.KeySet, AbstractKeyBasedMap.ValuesCollectionBase.LoggingWriter, Base.StackFrame| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
m_aoKey
The array containing map keys.
|
protected 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 and Description |
|---|
KeyValueArrayMap(Object[] aoKey, int iKey, Object[] aoValue, int iValue, int cSize)
Construct a KeyValueArrayMap backed by ranges of the specified key and value arrays.
|
KeyValueArrayMap(Object[] aoKey, Object[] aoValue)
Construct a KeyValueArrayMap backed by the specified key and value arrays.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object oKey)
Returns the value to which this map maps the specified key.
|
protected Iterator |
iterateKeys()
Create an iterator over the keys in this Map.
|
int |
size()
Returns the number of key-value mappings in this map.
|
clear, clone, containsKey, containsValue, entrySet, equals, getAll, hashCode, instantiateEntrySet, instantiateKeySet, instantiateValues, isEmpty, keySet, put, putAll, remove, removeBlind, toString, valuesazzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, waitfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Object[] m_aoKey
protected Object[] m_aoValue
protected int m_iKey
protected int m_iValue
protected int m_cSize
public KeyValueArrayMap(Object[] aoKey, Object[] aoValue)
aoKey - the array of keysaoValue - the array of valuespublic KeyValueArrayMap(Object[] aoKey, int iKey, 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 entriespublic Object get(Object oKey)
get in interface Mapget in class AbstractKeyBasedMapoKey - the key objectprotected Iterator iterateKeys()
iterateKeys in class AbstractKeyBasedMappublic int size()
size in interface Mapsize in class AbstractKeyBasedMap