
public final class IntMap<T>
extends java.lang.Object
implements java.lang.Cloneable
ints.| Constructor and Description |
|---|
IntMap()
Construct a new instance with an initial capacity of 64 and a load factor of
0.5. |
IntMap(float loadFactor)
Construct a new instance with the given load factor and an initial capacity of 64.
|
IntMap(int initialCapacity)
Construct a new instance with the given initial capacity and a load factor of
0.5. |
IntMap(int initialCapacity,
float loadFactor)
Construct a new instance with the given initial capacity and load factor.
|
public IntMap(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacityloadFactor - the load factorpublic IntMap(float loadFactor)
loadFactor - the load factorpublic IntMap(int initialCapacity)
0.5.initialCapacity - the initial capacitypublic IntMap()
0.5.public IntMap<T> clone()
clone in class java.lang.Objectpublic int get(T key, int defVal)
key - the keydefVal - the value to return if the key is not founddefVal if it's not foundpublic void put(T key, int value)
key - the keyvalue - the value to storepublic void clear()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2011 JBoss, a division of Red Hat, Inc.