|
JBoss Marshalling 1.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.marshalling.util.IdentityIntMap<T>
public final class IdentityIntMap<T>

An efficient identity object map whose keys are objects and whose values are ints.
| 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 found
public 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.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||