Package org.jruby.util.collections
Class IntHashMap<V>
java.lang.Object
org.jruby.util.collections.IntHashMap<V>
- Direct Known Subclasses:
IntHashMap.NullMap
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate classprivate classprivate classprivate classprivate classprivate static final classprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Set<IntHashMap.Entry<V>>private final floatprivate IntHashMap.Entry<V>[]private int(package private) Collection<V> -
Constructor Summary
ConstructorsConstructorDescriptionIntHashMap(int initialCapacity) IntHashMap(int initialCapacity, float loadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()booleanbooleancontainsKey(int key) booleancontainsValue(Object value) entrySet()get(int key) (package private) IntHashMap.Entry<V>getEntry(int key) booleanisEmpty()keySet()(package private) Iterator<IntHashMap.Entry<V>>static <U> IntHashMap<U>nullMap()protected voidrehash()remove(int key) intsize()toString()values()
-
Field Details
-
table
-
count
private int count -
keySet
-
values
-
threshold
private int threshold -
loadFactor
private final float loadFactor -
entrySet
-
-
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() -
getEntry
-
put
-
remove
-
clear
public void clear() -
newKeyIterator
-
newValueIterator
-
newEntryIterator
Iterator<IntHashMap.Entry<V>> newEntryIterator() -
keySet
-
values
-
entrySet
-
toString
-
clone
-
nullMap
-