|
JBoss Marshalling 1.3.0.CR9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.marshalling.util.IdentityIntMap<T>
public final class IdentityIntMap<T>
An efficient identity object map whose keys are objects and whose values are int
s.
Constructor Summary | |
---|---|
IdentityIntMap()
Construct a new instance with an initial capacity of 64 and a load factor of 0.5 . |
|
IdentityIntMap(float loadFactor)
Construct a new instance with the given load factor and an initial capacity of 64. |
|
IdentityIntMap(int initialCapacity)
Construct a new instance with the given initial capacity and a load factor of 0.5 . |
|
IdentityIntMap(int initialCapacity,
float loadFactor)
Construct a new instance with the given initial capacity and load factor. |
Method Summary | |
---|---|
void |
clear()
|
IdentityIntMap<T> |
clone()
Clone this map. |
int |
get(T key,
int defVal)
Get a value from the map. |
void |
put(T key,
int value)
Put a value into the map. |
String |
toString()
Get a string summary representation of this map. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IdentityIntMap(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacityloadFactor
- the load factorpublic IdentityIntMap(float loadFactor)
loadFactor
- the load factorpublic IdentityIntMap(int initialCapacity)
0.5
.
initialCapacity
- the initial capacitypublic IdentityIntMap()
0.5
.
Method Detail |
---|
public IdentityIntMap<T> clone()
clone
in class Object
public int get(T key, int defVal)
key
- the keydefVal
- the value to return if the key is not found
defVal
if it's not foundpublic void put(T key, int value)
key
- the keyvalue
- the value to storepublic void clear()
public String toString()
toString
in class Object
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |