public class EDIFPropertyMap extends Object implements Map<String,EDIFPropertyValue>
Map view over an EDIFPropertyObject's
inlined property storage.
To minimize per-object memory, EDIF property storage lives directly inside the
EDIFPropertyObject (see EDIFPropertyObject.getRawPropertyData())
rather than in a dedicated map object. This class provides the Map
interface over that storage on demand: EDIFPropertyObject.getPropertiesMap()
returns one of these views (a small, short-lived object that holds only a
reference back to its owner). All operations read and write through to the
owner, so the view always reflects the current properties and mutations affect
the underlying object.
This view is not thread-safe (neither is the underlying storage); a single
EDIF object's properties are only ever mutated by one thread during parsing.| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,EDIFPropertyValue>> |
entrySet() |
boolean |
equals(Object o) |
EDIFPropertyValue |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
EDIFPropertyValue |
put(String key,
EDIFPropertyValue value) |
void |
putAll(Map<? extends String,? extends EDIFPropertyValue> m) |
EDIFPropertyValue |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<EDIFPropertyValue> |
values() |
public int size()
size in interface Map<String,EDIFPropertyValue>public boolean isEmpty()
isEmpty in interface Map<String,EDIFPropertyValue>public boolean containsKey(Object key)
containsKey in interface Map<String,EDIFPropertyValue>public boolean containsValue(Object value)
containsValue in interface Map<String,EDIFPropertyValue>public EDIFPropertyValue get(Object key)
get in interface Map<String,EDIFPropertyValue>public EDIFPropertyValue put(String key, EDIFPropertyValue value)
put in interface Map<String,EDIFPropertyValue>public EDIFPropertyValue remove(Object key)
remove in interface Map<String,EDIFPropertyValue>public void putAll(Map<? extends String,? extends EDIFPropertyValue> m)
putAll in interface Map<String,EDIFPropertyValue>public void clear()
clear in interface Map<String,EDIFPropertyValue>public Set<String> keySet()
keySet in interface Map<String,EDIFPropertyValue>public Collection<EDIFPropertyValue> values()
values in interface Map<String,EDIFPropertyValue>public Set<Map.Entry<String,EDIFPropertyValue>> entrySet()
entrySet in interface Map<String,EDIFPropertyValue>public boolean equals(Object o)
equals in interface Map<String,EDIFPropertyValue>equals in class Objectpublic int hashCode()
hashCode in interface Map<String,EDIFPropertyValue>hashCode in class Objectpublic String toString()
toString in class Object