| Constructor and Description |
|---|
RecordIdMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(short key)
Check whether
key is present is this map. |
RecordId |
get(short key)
Returns the value associated with a given
key or null if none. |
short |
getKey(int index)
Retrieve the key at a given index.
|
RecordId |
getRecordId(int index)
Retrieve the value at a given index.
|
boolean |
put(short key,
RecordId value)
Associates
key with value if not already present |
int |
size() |
public boolean put(short key,
@Nonnull
RecordId value)
key with value if not already presentkey - value - true if added, false if already present@CheckForNull public RecordId get(short key)
key or null if none.key - the key to retrievekey or null if none.public boolean containsKey(short key)
key is present is this map.key - the key to check fortrue iff key is present.public int size()
public short getKey(int index)
index - indexArrayIndexOutOfBoundsException - if not 0 <= index < size()@Nonnull public RecordId getRecordId(int index)
index - indexArrayIndexOutOfBoundsException - if not 0 <= index < size()Copyright © 2012-2018 The Apache Software Foundation. All Rights Reserved.