org.objectweb.speedo.genclass.map
Class TreeMapImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap
org.objectweb.speedo.genclass.map.TreeMapImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, java.util.SortedMap, org.objectweb.jorm.api.PBinding, CacheEntry, FixableCacheEntry, ReplaceableCacheEntry, SpeedoGenClassCoherence, SpeedoGenClassPO, PersistentObjectItf
public abstract class TreeMapImpl
- extends java.util.TreeMap
- implements SpeedoGenClassPO
- Author:
- S.Chassande-Barrioz
- See Also:
- Serialized Form
Fields inherited from interface org.objectweb.jorm.api.PBinding |
ACTION_BIND, ACTION_EXIST, ACTION_EXPORT, ACTION_READ, ACTION_UNBIND, ACTION_UNEXPORT, ACTION_WRITE, LIFECYCLE_ACTIVEFORIO, LIFECYCLE_DELTOWRITE, LIFECYCLE_ERROR, LIFECYCLE_NEWTOWRITE, LIFECYCLE_NOTBOUND |
Methods inherited from class java.util.AbstractMap |
equals, hashCode |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.speedo.genclass.api.SpeedoGenClassPO |
fireSpeedoElementAdded, fireSpeedoElementRemoved, init, setElements, speedoAddGenClassListener, speedoGetGenClassId, speedoGetPBinding, speedoGetPType, speedoSetGcId, speedoSetLinkedField, speedoSetPBinding, speedoSetPNameHints, speedoSetPType |
Methods inherited from interface org.objectweb.speedo.mim.api.PersistentObjectItf |
speedoAdd, speedoCopyState, speedoGetEncodedPName, speedoGetHome, speedoGetPNameHints, speedoGetPOManager, speedoGetState, speedoIsActive, speedoIsActive, speedoIsPersistent, speedoSetEncodedPName |
Methods inherited from interface org.objectweb.jorm.api.PBinding |
bind, exist, export, export, getPClassMapping, getPName, getStatus, init, read, read, read, unbind, unexport, write |
Methods inherited from interface java.util.Map |
equals, hashCode |
TreeMapImpl
public TreeMapImpl()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.AbstractMap
speedoGetReferenceState
public StateItf speedoGetReferenceState()
- Specified by:
speedoGetReferenceState
in interface PersistentObjectItf
- Returns:
- the reference accessor of the PersistentObjectItf instance. It can be *
null.
The Reference accessor is used for non persistent instance, as cache
value and for pessimistic policy.
speedoSetReferenceState
public void speedoSetReferenceState(StateItf refAcc)
- Description copied from interface:
PersistentObjectItf
- Assignes the reference accessor to the PersistentObjectItf
The Reference accessor is used for non persistent instance, as cache
value and for pessimistic policy.
- Specified by:
speedoSetReferenceState
in interface PersistentObjectItf
- Parameters:
refAcc
- the new reference accessor
createGenClass
public java.lang.Object createGenClass()
- Specified by:
createGenClass
in interface SpeedoGenClassPO
speedoCreateState
public StateItf speedoCreateState()
- Specified by:
speedoCreateState
in interface PersistentObjectItf
- Returns:
- a new StateItf instance.
size
public int size()
- Specified by:
size
in interface java.util.Map
- Overrides:
size
in class java.util.TreeMap
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Map
- Overrides:
isEmpty
in class java.util.AbstractMap
containsValue
public boolean containsValue(java.lang.Object o)
- Specified by:
containsValue
in interface java.util.Map
- Overrides:
containsValue
in class java.util.TreeMap
containsKey
public boolean containsKey(java.lang.Object o)
- Specified by:
containsKey
in interface java.util.Map
- Overrides:
containsKey
in class java.util.TreeMap
get
public java.lang.Object get(java.lang.Object o)
- Specified by:
get
in interface java.util.Map
- Overrides:
get
in class java.util.TreeMap
put
public java.lang.Object put(java.lang.Object o,
java.lang.Object o1)
- Specified by:
put
in interface java.util.Map
- Overrides:
put
in class java.util.TreeMap
remove
public java.lang.Object remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Map
- Overrides:
remove
in class java.util.TreeMap
putAll
public void putAll(java.util.Map map)
- Specified by:
putAll
in interface java.util.Map
- Overrides:
putAll
in class java.util.TreeMap
clear
public void clear()
- Specified by:
clear
in interface java.util.Map
- Specified by:
clear
in interface SpeedoGenClassPO
- Overrides:
clear
in class java.util.TreeMap
keySet
public java.util.Set keySet()
- Specified by:
keySet
in interface java.util.Map
- Overrides:
keySet
in class java.util.TreeMap
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet
in interface java.util.Map
- Overrides:
entrySet
in class java.util.TreeMap
values
public java.util.Collection values()
- Specified by:
values
in interface java.util.Map
- Overrides:
values
in class java.util.TreeMap
comparator
public java.util.Comparator comparator()
- Specified by:
comparator
in interface java.util.SortedMap
- Overrides:
comparator
in class java.util.TreeMap
firstKey
public java.lang.Object firstKey()
- Specified by:
firstKey
in interface java.util.SortedMap
- Overrides:
firstKey
in class java.util.TreeMap
lastKey
public java.lang.Object lastKey()
- Specified by:
lastKey
in interface java.util.SortedMap
- Overrides:
lastKey
in class java.util.TreeMap
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.util.TreeMap
subMap
public java.util.SortedMap subMap(java.lang.Object fromKey,
java.lang.Object toKey)
- Specified by:
subMap
in interface java.util.SortedMap
- Overrides:
subMap
in class java.util.TreeMap
headMap
public java.util.SortedMap headMap(java.lang.Object toKey)
- Specified by:
headMap
in interface java.util.SortedMap
- Overrides:
headMap
in class java.util.TreeMap
tailMap
public java.util.SortedMap tailMap(java.lang.Object fromKey)
- Specified by:
tailMap
in interface java.util.SortedMap
- Overrides:
tailMap
in class java.util.TreeMap