public class Int2ObjectBiMap<K> extends Object implements IndexedIterable<K>
| Modifier and Type | Field and Description |
|---|---|
private static Object |
empty |
private int[] |
ids |
private K[] |
idToValues |
private int |
nextId |
private int |
size |
private K[] |
values |
| Constructor and Description |
|---|
Int2ObjectBiMap(int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(K value) |
void |
clear() |
private int |
findFree(int size) |
private int |
findIndex(K value,
int id) |
K |
get(int index) |
int |
getId(K value) |
private int |
getIdealIndex(K value) |
private int |
getIdFromIndex(int index) |
Iterator<K> |
iterator() |
boolean |
method_28138(int int2) |
private int |
nextId() |
void |
put(K value,
int id) |
private void |
resize(int newSize) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprivate static final Object empty
private K[] values
private int[] ids
private K[] idToValues
private int nextId
private int size
@Nullable public K get(int index)
get in interface IndexedIterable<K>private int getIdFromIndex(int index)
public boolean method_28138(int int2)
public int add(K value)
private int nextId()
private void resize(int newSize)
public void put(K value, int id)
private int findFree(int size)
public void clear()
public int size()