类 IdentityIntMap
- java.lang.Object
-
- com.alibaba.com.caucho.hessian.util.IdentityIntMap
-
public class IdentityIntMap extends Object
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.
-
-
字段概要
字段 修饰符和类型 字段 说明 static int
NULL
Encoding of a null entry.
-
构造器概要
构造器 构造器 说明 IdentityIntMap()
Create a new IntMap.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
clear()
Clear the hashmap.int
get(Object key)
Puts a new value in the property table with the appropriate flagsint
put(Object key, int value)
Puts a new value in the property table with the appropriate flagsint
remove(Object key)
Deletes the entry.int
size()
Returns the current number of entries in the map.String
toString()
-
-
-
字段详细资料
-
NULL
public static final int NULL
Encoding of a null entry. Since NULL is equal to Integer.MIN_VALUE, it's impossible to distinguish between the two.- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
clear
public void clear()
Clear the hashmap.
-
size
public int size()
Returns the current number of entries in the map.
-
get
public int get(Object key)
Puts a new value in the property table with the appropriate flags
-
put
public int put(Object key, int value)
Puts a new value in the property table with the appropriate flags
-
remove
public int remove(Object key)
Deletes the entry. Returns true if successful.
-
-