org.jboss.marshalling.util
Class IntKeyMap<V>
java.lang.Object
org.jboss.marshalling.util.IntKeyMap<V>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<IntKeyMap.Entry<V>>
public final class IntKeyMap<V>
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable, java.lang.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:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntKeyMap
public IntKeyMap(int initialCapacity,
float loadFactor)
IntKeyMap
public IntKeyMap(IntKeyMap<? extends V> map)
IntKeyMap
public IntKeyMap(int initialCapacity)
IntKeyMap
public IntKeyMap()
size
public int size()
isEmpty
public boolean isEmpty()
get
public V get(int key)
containsKey
public boolean containsKey(int key)
containsValue
public boolean containsValue(java.lang.Object value)
put
public V put(int key,
V value)
remove
public V remove(int key)
clear
public void clear()
clone
public IntKeyMap<V> clone()
- Overrides:
clone
in class java.lang.Object
printDebugStats
public void printDebugStats()
iterator
public java.util.Iterator<IntKeyMap.Entry<V>> iterator()
- Iterate over the entries. Read-only operation.
- Specified by:
iterator
in interface java.lang.Iterable<IntKeyMap.Entry<V>>
- Returns:
- the entry iterator
Copyright © 2011 JBoss, a division of Red Hat, Inc.