java.lang.Object
de.grogra.util.Int2IntMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
dup()
int
findIndex
(int key) final int
get
(int key) int
getKeyAt
(int index) int[]
getKeys
(int[] array) int
getValueAt
(int index) int[]
getValues
(int[] array) final int
put
(int key, int value) final int
remove
(int key) void
setValueAt
(int index, int value) int
size()
final int
synchronizedGet
(int key) final int
synchronizedPut
(int key, int value) final int
synchronizedRemove
(int key)
-
Constructor Details
-
Int2IntMap
public Int2IntMap(int capacity) -
Int2IntMap
public Int2IntMap() -
Int2IntMap
public Int2IntMap(int[] keys, int off, int len)
-
-
Method Details
-
dup
-
getKeys
public int[] getKeys(int[] array) -
getValues
public int[] getValues(int[] array) -
synchronizedPut
public final int synchronizedPut(int key, int value) -
put
public final int put(int key, int value) -
get
public final int get(int key) -
synchronizedGet
public final int synchronizedGet(int key) -
remove
public final int remove(int key) -
synchronizedRemove
public final int synchronizedRemove(int key) -
size
public int size() -
clear
public void clear() -
getKeyAt
public int getKeyAt(int index) -
getValueAt
public int getValueAt(int index) -
findIndex
public int findIndex(int key) -
setValueAt
public void setValueAt(int index, int value)
-