|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.util.Collections.SynchronizedIntMap<V>
protected static class Collections.SynchronizedIntMap<V>
Horked from the Java util class and extended for IntMap.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.samskivert.util.IntMap |
|---|
IntMap.IntEntry<V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(int key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<Integer,V>> |
entrySet()
|
boolean |
equals(Object o)
|
V |
get(int key)
Returns the value to which this map maps the specified key. |
V |
get(Object key)
|
int |
hashCode()
|
Set<IntMap.IntEntry<V>> |
intEntrySet()
Returns a set of all the map entries. |
IntSet |
intKeySet()
Get a set of all the keys, as an IntSet. |
boolean |
isEmpty()
|
Set<Integer> |
keySet()
|
V |
put(Integer key,
V value)
|
V |
put(int key,
V value)
Associates the specified value with the specified key in this map. |
void |
putAll(Map<? extends Integer,? extends V> map)
|
V |
remove(int key)
Removes the mapping for this key from this map if present. |
V |
remove(Object key)
|
int |
size()
|
String |
toString()
|
Collection<V> |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int size()
size in interface Map<Integer,V>public boolean isEmpty()
isEmpty in interface Map<Integer,V>public boolean containsKey(int key)
IntMap
containsKey in interface IntMap<V>key - key whose presence in this map is to be tested.
public boolean containsKey(Object key)
containsKey in interface Map<Integer,V>public boolean containsValue(Object value)
containsValue in interface Map<Integer,V>public V get(int key)
IntMap
get in interface IntMap<V>key - key whose associated value is to be returned.
public V get(Object key)
get in interface Map<Integer,V>
public V put(int key,
V value)
IntMap
put in interface IntMap<V>key - key with which the specified value is to be associated.value - value to be associated with the specified key.
public V put(Integer key,
V value)
put in interface Map<Integer,V>public V remove(int key)
IntMap
remove in interface IntMap<V>key - key whose mapping is to be removed from the map.
public V remove(Object key)
remove in interface Map<Integer,V>public void putAll(Map<? extends Integer,? extends V> map)
putAll in interface Map<Integer,V>public void clear()
clear in interface Map<Integer,V>public Set<Integer> keySet()
keySet in interface Map<Integer,V>public IntSet intKeySet()
IntMap
intKeySet in interface IntMap<V>public Set<Map.Entry<Integer,V>> entrySet()
entrySet in interface Map<Integer,V>public Set<IntMap.IntEntry<V>> intEntrySet()
IntMap
intEntrySet in interface IntMap<V>public Collection<V> values()
values in interface Map<Integer,V>public boolean equals(Object o)
equals in interface Map<Integer,V>equals in class Objectpublic int hashCode()
hashCode in interface Map<Integer,V>hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||