java.lang.Object
java.util.AbstractMap
java.util.TreeMap
org.apache.commons.collections.FastTreeMap
org.objectstyle.cayenne.util.CayenneMap
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable, java.util.SortedMap
- public class CayenneMap
- extends org.apache.commons.collections.FastTreeMap
A CayenneMap is a specialized double-linked
ordered map class. Attempts to add objects using
an already existing keys will result in
IllegalArgumentExceptions.
Normally CayenneMap is not subclassed directly,
but is rather used as an instance variable within
another class. Enclosing instance would set itself
as a parent of this map.
| Nested classes inherited from class org.apache.commons.collections.FastTreeMap |
|
| Nested classes inherited from class java.util.TreeMap |
|
| Nested classes inherited from class java.util.AbstractMap |
|
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Fields inherited from class java.util.TreeMap |
|
| Methods inherited from class org.apache.commons.collections.FastTreeMap |
clear, clone, comparator, containsKey, containsValue, entrySet, equals, firstKey, get, getFast, hashCode, headMap, isEmpty, keySet, lastKey, remove, setFast, size, subMap, tailMap, values |
| Methods inherited from class java.util.TreeMap |
|
parent
protected java.lang.Object parent
CayenneMap
public CayenneMap(java.lang.Object parent)
- Constructor for CayenneMap.
CayenneMap
public CayenneMap(java.lang.Object parent,
java.util.Comparator c)
- Constructor for CayenneMap.
CayenneMap
public CayenneMap(java.lang.Object parent,
java.util.Map m)
- Constructor for CayenneMap.
CayenneMap
public CayenneMap(java.lang.Object parent,
java.util.SortedMap m)
- Constructor for CayenneMap.
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Maps specified key-value pair. If value is a
CayenneMapEntry, sets its parent to this map.
putAll
public void putAll(java.util.Map t)
- Description copied from class:
org.apache.commons.collections.FastTreeMap
- Copy all of the mappings from the specified map to this one, replacing
any mappings with the same keys.
getParent
public java.lang.Object getParent()
- Returns the parent.
setParent
public void setParent(java.lang.Object mapParent)
- Sets the parent.