|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
net.ontopia.utils.CompactHashMap<K,V>
public class CompactHashMap<K,V>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
CompactHashMap()
Constructs a new, empty set. |
|
CompactHashMap(int size)
Constructs a new, empty set. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all key/value mappings in the map. |
boolean |
containsKey(java.lang.Object k)
Returns true if this map contains the specified key. |
boolean |
containsValue(java.lang.Object v)
Returns true if this map contains the specified value. |
java.util.Set |
entrySet()
Returns a read-only set view of the map's keys. |
V |
get(java.lang.Object k)
Returns the value for the key k, if there is one, and null if there is none. |
boolean |
isEmpty()
Returns true if this map contains no mappings. |
java.util.Set<K> |
keySet()
Returns a virtual read-only set of all the keys in the map. |
V |
put(java.lang.Object k,
java.lang.Object v)
Adds the specified mapping to this map, returning the old value for the mapping, if there was one. |
V |
remove(java.lang.Object k)
Removes the mapping with key k, if there is one, and returns its value, if there is one, and null if there is none. |
int |
size()
Returns the number of key/value mappings in this map. |
java.util.Collection<V> |
values()
Returns a virtual read-only collection containing all the values in the map. |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, putAll, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompactHashMap()
public CompactHashMap(int size)
| Method Detail |
|---|
public int size()
size in interface java.util.Map<K,V>size in class java.util.AbstractMap<K,V>public boolean isEmpty()
isEmpty in interface java.util.Map<K,V>isEmpty in class java.util.AbstractMap<K,V>public void clear()
clear in interface java.util.Map<K,V>clear in class java.util.AbstractMap<K,V>public boolean containsKey(java.lang.Object k)
containsKey in interface java.util.Map<K,V>containsKey in class java.util.AbstractMap<K,V>public boolean containsValue(java.lang.Object v)
containsValue in interface java.util.Map<K,V>containsValue in class java.util.AbstractMap<K,V>public java.util.Set entrySet()
entrySet in interface java.util.Map<K,V>entrySet in class java.util.AbstractMap<K,V>public V remove(java.lang.Object k)
remove in interface java.util.Map<K,V>remove in class java.util.AbstractMap<K,V>
public V put(java.lang.Object k,
java.lang.Object v)
put in interface java.util.Map<K,V>put in class java.util.AbstractMap<K,V>public V get(java.lang.Object k)
get in interface java.util.Map<K,V>get in class java.util.AbstractMap<K,V>public java.util.Collection<V> values()
values in interface java.util.Map<K,V>values in class java.util.AbstractMap<K,V>public java.util.Set<K> keySet()
keySet in interface java.util.Map<K,V>keySet in class java.util.AbstractMap<K,V>
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||