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 TypeMethodDescriptionvoidclear()clone()booleanbooleancontainsKey(int key) booleancontainsValue(Object value) entrySet()voidforEach(BiConsumer<Integer, ? super V> action) get(int key) booleanisEmpty()keySet()static <U> IntHashMap<U> nullMap()protected voidrehash()remove(int key) intsize()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
-