Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.util
Class CayenneMap  view CayenneMap download CayenneMap.java

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.TreeMap
          extended byorg.apache.commons.collections.FastTreeMap
              extended byorg.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 Class Summary
 
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
 
Field Summary
protected  java.lang.Object parent
           
 
Fields inherited from class org.apache.commons.collections.FastTreeMap
fast, map
 
Fields inherited from class java.util.TreeMap
 
Fields inherited from class java.util.AbstractMap
 
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)
          Copy all of the mappings from the specified map to this one, replacing any mappings with the same keys.
 void setParent(java.lang.Object mapParent)
          Sets the parent.
 
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
 
Methods inherited from class java.util.AbstractMap
toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

protected java.lang.Object parent
Constructor Detail

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.

Method Detail

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.