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 onFastCopyHashMapby Jason T. Greene.- Author:
- Jason T. Greene, David M. Lloyd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntKeyMap.Entry<V>A map entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()IntKeyMap<V>clone()booleancontainsKey(int key)booleancontainsValue(Object value)Vget(int key)booleanisEmpty()Iterator<IntKeyMap.Entry<V>>iterator()Iterate over the entries.voidprintDebugStats()Vput(int key, V value)Vremove(int key)intsize()-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
get
public V get(int key)
-
containsKey
public boolean containsKey(int key)
-
containsValue
public boolean containsValue(Object value)
-
remove
public V remove(int key)
-
clear
public void clear()
-
printDebugStats
public void printDebugStats()
-
-