org.apache.ibatis.ognl
Class IntHashMap
java.lang.Object
org.apache.ibatis.ognl.IntHashMap
- All Implemented Interfaces:
- Map
public class IntHashMap
- extends Object
- implements Map
A Map that uses ints as the keys.
Use just like any java.util.Map, except that the keys must be ints.
This is much faster than creating a new Integer for each access.
For non-Map access (faster) use the put(int, Object) method.
This class implements Map for convenience, but this is not the most
efficient usage.
- See Also:
HashMap,
Map
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntHashMap
public IntHashMap(int initialCapacity,
float loadFactor)
IntHashMap
public IntHashMap(int initialCapacity)
IntHashMap
public IntHashMap()
rehash
protected void rehash()
containsKey
public final boolean containsKey(int key)
get
public final Object get(int key)
put
public final Object put(int key,
Object value)
remove
public final Object remove(int key)
size
public int size()
- Specified by:
size in interface Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map
get
public Object get(Object key)
- Specified by:
get in interface Map
put
public Object put(Object key,
Object value)
- Specified by:
put in interface Map
putAll
public void putAll(Map otherMap)
- Specified by:
putAll in interface Map
remove
public Object remove(Object key)
- Specified by:
remove in interface Map
clear
public void clear()
- Specified by:
clear in interface Map
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map
keySet
public Set keySet()
- Specified by:
keySet in interface Map
values
public Collection values()
- Specified by:
values in interface Map
entrySet
public Set entrySet()
- Specified by:
entrySet in interface Map
Copyright © 2010. All Rights Reserved.