Package zombie.util.map
Class IntKeyOpenHashMap
java.lang.Object
zombie.util.map.AbstractIntKeyMap
zombie.util.map.IntKeyOpenHashMap
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,IntKeyMap
public class IntKeyOpenHashMap extends AbstractIntKeyMap implements IntKeyMap, java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_CAPACITY
static int
DEFAULT_GROWTH_CHUNK
static double
DEFAULT_GROWTH_FACTOR
static double
DEFAULT_LOAD_FACTOR
-
Constructor Summary
Constructors Constructor Description IntKeyOpenHashMap()
IntKeyOpenHashMap(double loadFactor)
IntKeyOpenHashMap(int capacity)
IntKeyOpenHashMap(int capacity, double loadFactor)
IntKeyOpenHashMap(int capacity, double loadFactor, double growthFactor)
IntKeyOpenHashMap(int capacity, double loadFactor, int growthChunk)
IntKeyOpenHashMap(IntHashFunction keyhash)
IntKeyOpenHashMap(IntHashFunction keyhash, double loadFactor)
IntKeyOpenHashMap(IntHashFunction keyhash, int capacity)
IntKeyOpenHashMap(IntHashFunction keyhash, int capacity, double loadFactor)
IntKeyOpenHashMap(IntHashFunction keyhash, int capacity, double loadFactor, double growthFactor)
IntKeyOpenHashMap(IntHashFunction keyhash, int capacity, double loadFactor, int growthChunk)
IntKeyOpenHashMap(IntKeyMap map)
-
Method Summary
Modifier and Type Method Description void
clear()
java.lang.Object
clone()
boolean
containsKey(int key)
boolean
containsValue(java.lang.Object value)
IntKeyMapIterator
entries()
java.lang.Object
get(int key)
boolean
isEmpty()
IntSet
keySet()
java.lang.Object
put(int key, java.lang.Object value)
java.lang.Object
remove(int key)
int
size()
java.util.Collection
values()
Methods inherited from class zombie.util.map.AbstractIntKeyMap
equals, hashCode, putAll, toString, trimToSize
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
DEFAULT_GROWTH_FACTOR
public static final double DEFAULT_GROWTH_FACTOR- See Also:
- Constant Field Values
-
DEFAULT_GROWTH_CHUNK
public static final int DEFAULT_GROWTH_CHUNK- See Also:
- Constant Field Values
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY- See Also:
- Constant Field Values
-
DEFAULT_LOAD_FACTOR
public static final double DEFAULT_LOAD_FACTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
IntKeyOpenHashMap
public IntKeyOpenHashMap() -
IntKeyOpenHashMap
-
IntKeyOpenHashMap
public IntKeyOpenHashMap(int capacity) -
IntKeyOpenHashMap
public IntKeyOpenHashMap(double loadFactor) -
IntKeyOpenHashMap
public IntKeyOpenHashMap(int capacity, double loadFactor) -
IntKeyOpenHashMap
public IntKeyOpenHashMap(int capacity, double loadFactor, double growthFactor) -
IntKeyOpenHashMap
public IntKeyOpenHashMap(int capacity, double loadFactor, int growthChunk) -
IntKeyOpenHashMap
-
IntKeyOpenHashMap
-
IntKeyOpenHashMap
-
IntKeyOpenHashMap
-
IntKeyOpenHashMap
public IntKeyOpenHashMap(IntHashFunction keyhash, int capacity, double loadFactor, double growthFactor) -
IntKeyOpenHashMap
public IntKeyOpenHashMap(IntHashFunction keyhash, int capacity, double loadFactor, int growthChunk)
-
-
Method Details
-
keySet
-
put
public java.lang.Object put(int key, java.lang.Object value) -
values
public java.util.Collection values() -
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-
entries
-
clear
public void clear()- Specified by:
clear
in interfaceIntKeyMap
- Overrides:
clear
in classAbstractIntKeyMap
-
containsKey
public boolean containsKey(int key)- Specified by:
containsKey
in interfaceIntKeyMap
- Overrides:
containsKey
in classAbstractIntKeyMap
-
containsValue
public boolean containsValue(java.lang.Object value)- Specified by:
containsValue
in interfaceIntKeyMap
- Overrides:
containsValue
in classAbstractIntKeyMap
-
get
public java.lang.Object get(int key)- Specified by:
get
in interfaceIntKeyMap
- Overrides:
get
in classAbstractIntKeyMap
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceIntKeyMap
- Overrides:
isEmpty
in classAbstractIntKeyMap
-
remove
public java.lang.Object remove(int key)- Specified by:
remove
in interfaceIntKeyMap
- Overrides:
remove
in classAbstractIntKeyMap
-
size
public int size()- Specified by:
size
in interfaceIntKeyMap
- Overrides:
size
in classAbstractIntKeyMap
-