Package org.jruby.util.collections
Class IntHashMap<V>
java.lang.Object
org.jruby.util.collections.IntHashMap<V>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionIntHashMap
(int initialCapacity) IntHashMap
(int initialCapacity, float loadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
boolean
boolean
containsKey
(int key) boolean
containsValue
(Object value) entrySet()
void
forEach
(BiConsumer<Integer, ? super V> action) get
(int key) boolean
isEmpty()
keySet()
static <U> IntHashMap
<U> nullMap()
protected void
rehash()
remove
(int key) int
size()
toString()
values()
-
Constructor Details
-
IntHashMap
public IntHashMap() -
IntHashMap
public IntHashMap(int initialCapacity) -
IntHashMap
public IntHashMap(int initialCapacity, float loadFactor)
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
containsValue
-
containsKey
public boolean containsKey(int key) -
get
-
rehash
protected void rehash() -
put
-
remove
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-
clone
-
forEach
-
nullMap
-