|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.internal.utils.ObjectMap
public class ObjectMap
A specialized map implementation that is optimized for a small set of object keys. Implemented as a single array that alternates keys and values.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
ObjectMap()
Creates a new object map of default size |
|
ObjectMap(int initialCapacity)
Creates a new object map. |
|
ObjectMap(java.util.Map map)
Creates a new object map of the same size as the given map and populate it with the key/attribute pairs found in the map. |
|
| Method Summary | |
|---|---|
void |
clear()
|
java.lang.Object |
clone()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
boolean |
equals(java.lang.Object o)
See Object#equals |
java.lang.Object |
get(java.lang.Object key)
|
int |
hashCode()
See Object#hashCode |
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
putAll(java.util.Map map)
|
java.lang.Object |
remove(java.lang.Object key)
|
void |
shareStrings(StringPool set)
Instructs this participant to share its strings in the provided pool. |
int |
size()
|
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectMap()
public ObjectMap(int initialCapacity)
initialCapacity - The initial number of elements that will fit in the map.public ObjectMap(java.util.Map map)
map - The entries in the given map will be added to the new map.| Method Detail |
|---|
public void clear()
clear in interface java.util.MapMap.clear()public java.lang.Object clone()
clone in class java.lang.ObjectObject.clone()public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.MapMap.containsKey(java.lang.Object)public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.MapMap.containsValue(java.lang.Object)public java.util.Set entrySet()
entrySet in interface java.util.MapThis implementation does not conform properly to the specification
in the Map interface. The returned collection will not be bound to
this map and will not remain in sync with this map.public boolean equals(java.lang.Object o)
equals in interface java.util.Mapequals in class java.lang.Objectpublic java.lang.Object get(java.lang.Object key)
get in interface java.util.MapMap.get(java.lang.Object)public int hashCode()
hashCode in interface java.util.MaphashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.MapMap.isEmpty()public java.util.Set keySet()
keySet in interface java.util.MapThis implementation does not conform properly to the specification
in the Map interface. The returned collection will not be bound to
this map and will not remain in sync with this map.
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.MapMap.put(java.lang.Object, java.lang.Object)public void putAll(java.util.Map map)
putAll in interface java.util.MapMap.putAll(java.util.Map)public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.MapMap.remove(java.lang.Object)public int size()
size in interface java.util.MapMap.size()public void shareStrings(StringPool set)
IStringPoolParticipant
shareStrings in interface IStringPoolParticipantpublic java.util.Collection values()
values in interface java.util.MapThis implementation does not conform properly to the specification
in the Map interface. The returned collection will not be bound to
this map and will not remain in sync with this map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||