public final class HashedMapIntKey<V> extends Object
See HashedMap.java for additional comments throughout the code, since the classes are so similiar.
The main design difference with HashedMap is obviously in getBucket().
Beware that this class is single-threaded and non-reentrant.
Constructor and Description |
---|
HashedMapIntKey() |
HashedMapIntKey(int initcap) |
HashedMapIntKey(int initcap,
float factor) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(int key) |
boolean |
containsValue(Object val) |
V |
get(int key) |
int[] |
getKeys(int[] keys) |
List<V> |
getValues() |
boolean |
isEmpty() |
IteratorInt |
keysIterator() |
V |
put(int key,
V value) |
IteratorInt |
recycledKeysIterator() |
Iterator<V> |
recycledValuesIterator() |
V |
remove(int key) |
int |
size() |
String |
toString() |
int |
trimToSize() |
Iterator<V> |
valuesIterator() |
public HashedMapIntKey()
public HashedMapIntKey(int initcap)
public HashedMapIntKey(int initcap, float factor)
public boolean isEmpty()
public int size()
public void clear()
public boolean containsKey(int key)
public V get(int key)
public V remove(int key)
public boolean containsValue(Object val)
public int[] getKeys(int[] keys)
public int trimToSize()
public IteratorInt keysIterator()
public IteratorInt recycledKeysIterator()
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.