|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.hessian.util.IdentityIntMap
public class IdentityIntMap
The IntMap provides a simple hashmap from keys to integers. The API is an abbreviation of the HashMap collection API.
The convenience of IntMap is avoiding all the silly wrapping of integers.
Field Summary | |
---|---|
static int |
NULL
Encoding of a null entry. |
static int[] |
PRIMES
|
Constructor Summary | |
---|---|
IdentityIntMap(int capacity)
Create a new IntMap. |
Method Summary | |
---|---|
void |
clear()
Clear the hashmap. |
int |
get(java.lang.Object key)
Puts a new value in the property table with the appropriate flags |
static int |
getBiggestPrime(int value)
|
protected int |
hashCode(java.lang.Object value)
|
int |
put(java.lang.Object key,
int value,
boolean isReplace)
Puts a new value in the property table with the appropriate flags |
void |
remove(java.lang.Object key)
Removes a value in the property table. |
int |
size()
Returns the current number of entries in the map. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NULL
public static final int[] PRIMES
Constructor Detail |
---|
public IdentityIntMap(int capacity)
Method Detail |
---|
public void clear()
public final int size()
public final int get(java.lang.Object key)
public final int put(java.lang.Object key, int value, boolean isReplace)
public final void remove(java.lang.Object key)
protected int hashCode(java.lang.Object value)
public java.lang.String toString()
toString
in class java.lang.Object
public static int getBiggestPrime(int value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |