|
||||||||||
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.Map
Map.clear()
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
Map.containsKey(java.lang.Object)
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
Map.containsValue(java.lang.Object)
public java.util.Set entrySet()
entrySet
in interface java.util.Map
This 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.Map
equals
in class java.lang.Object
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
Map.get(java.lang.Object)
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Map
Map.isEmpty()
public java.util.Set keySet()
keySet
in interface java.util.Map
This 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.Map
Map.put(java.lang.Object, java.lang.Object)
public void putAll(java.util.Map map)
putAll
in interface java.util.Map
Map.putAll(java.util.Map)
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
Map.remove(java.lang.Object)
public int size()
size
in interface java.util.Map
Map.size()
public void shareStrings(StringPool set)
IStringPoolParticipant
shareStrings
in interface IStringPoolParticipant
public java.util.Collection values()
values
in interface java.util.Map
This 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 |