|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.TreeMap
org.apache.commons.collections.FastTreeMap
org.apache.cayenne.util.CayenneMap
public class CayenneMap
A CayenneMap
is a specialized double-linked sorted map class. Attempts
to add objects using an already existing keys will result in IllegalArgumentExceptions.
Any added entries that implement CayenneMapEntry interface will have their parent set
to the parent of this map.
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.
Field Summary | |
---|---|
protected java.lang.Object |
parent
|
Fields inherited from class org.apache.commons.collections.FastTreeMap |
---|
fast, map |
Constructor Summary | |
---|---|
CayenneMap(java.lang.Object parent)
Constructor for CayenneMap. |
|
CayenneMap(java.lang.Object parent,
java.util.Comparator c)
Constructor for CayenneMap. |
|
CayenneMap(java.lang.Object parent,
java.util.Map m)
Constructor for CayenneMap. |
|
CayenneMap(java.lang.Object parent,
java.util.SortedMap m)
Constructor for CayenneMap. |
Method Summary | |
---|---|
java.lang.Object |
getParent()
Returns the parent. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps specified key-value pair. |
void |
putAll(java.util.Map t)
|
void |
setParent(java.lang.Object mapParent)
|
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.AbstractMap |
---|
toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object parent
Constructor Detail |
---|
public CayenneMap(java.lang.Object parent)
public CayenneMap(java.lang.Object parent, java.util.Comparator c)
c
- public CayenneMap(java.lang.Object parent, java.util.Map m)
m
- public CayenneMap(java.lang.Object parent, java.util.SortedMap m)
m
- Method Detail |
---|
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class org.apache.commons.collections.FastTreeMap
Map.put(Object, Object)
public void putAll(java.util.Map t)
putAll
in interface java.util.Map
putAll
in class org.apache.commons.collections.FastTreeMap
Map.putAll(Map)
public java.lang.Object getParent()
public void setParent(java.lang.Object mapParent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |