Package org.jboss.marshalling.util
Class IntKeyMap<V>
java.lang.Object
org.jboss.marshalling.util.IntKeyMap<V>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<IntKeyMap.Entry<V>>
public final class IntKeyMap<V>
extends Object
implements Cloneable, Serializable, Iterable<IntKeyMap.Entry<V>>
An integer-keyed map, optimized for fast copying. Based on
FastCopyHashMap by Jason T. Greene.- Author:
- Jason T. Greene, David M. Lloyd
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()booleancontainsKey(int key) booleancontainsValue(Object value) get(int key) booleanisEmpty()iterator()Iterate over the entries.voidremove(int key) intsize()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IntKeyMap
public IntKeyMap(int initialCapacity, float loadFactor) -
IntKeyMap
-
IntKeyMap
public IntKeyMap(int initialCapacity) -
IntKeyMap
public IntKeyMap()
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
get
-
containsKey
public boolean containsKey(int key) -
containsValue
-
put
-
remove
-
clear
public void clear() -
clone
-
printDebugStats
public void printDebugStats() -
iterator
Iterate over the entries. Read-only operation.
-