public class PersistentSortedMap<K,V> extends AbstractPersistentMapCollection<K,V,java.util.SortedMap<K,V>> implements java.util.SortedMap<K,V>, PersistentSortedCollection<java.util.SortedMap<K,V>,K>
PersistentCollection.ChangeListener<C>, PersistentCollection.InitializationCallback<C>, PersistentCollection.InitializationListener<C>, PersistentCollection.Initializer<C>| Constructor and Description |
|---|
PersistentSortedMap() |
PersistentSortedMap(boolean initialized) |
PersistentSortedMap(java.util.SortedMap<K,V> collection) |
PersistentSortedMap(java.util.SortedMap<K,V> collection,
boolean clone) |
| Modifier and Type | Method and Description |
|---|---|
PersistentSortedMap<K,V> |
clone(boolean uninitialize)
Clone a persistent collection
|
java.util.Comparator<? super K> |
comparator()
Comparator for the sorting
|
protected PersistentCollectionSnapshot |
createSnapshot(java.lang.Object io,
boolean forReading) |
void |
doInitialize(java.util.SortedMap<K,V> sortedMap,
boolean empty) |
K |
firstKey() |
java.util.SortedMap<K,V> |
headMap(K toKey) |
K |
lastKey() |
java.util.SortedMap<K,V> |
subMap(K fromKey,
K toKey) |
java.util.SortedMap<K,V> |
tailMap(K fromKey) |
protected void |
updateFromSnapshot(java.io.ObjectInput in,
PersistentCollectionSnapshot snapshot) |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, put, putAll, remove, size, valuesaddListener, addListener, checkInitializedRead, checkInitializedWrite, clearDirty, dirty, getClassLoader, getCollection, getDetachedState, getLoader, init, initialize, initializing, isDirty, readExternal, removeListener, removeListener, setLoader, toString, uninitialize, wasInitialized, withInitialized, writeExternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, sizeaddListener, addListener, clearDirty, dirty, getLoader, initialize, initializing, isDirty, removeListener, removeListener, setLoader, uninitialize, wasInitialized, withInitializedpublic PersistentSortedMap()
public PersistentSortedMap(boolean initialized)
public void doInitialize(java.util.SortedMap<K,V> sortedMap, boolean empty)
doInitialize in class AbstractPersistentCollection<java.util.SortedMap<K,V>>public java.util.Comparator<? super K> comparator()
PersistentSortedCollectioncomparator in interface java.util.SortedMap<K,V>comparator in interface PersistentSortedCollection<java.util.SortedMap<K,V>,K>protected PersistentCollectionSnapshot createSnapshot(java.lang.Object io, boolean forReading)
createSnapshot in class AbstractPersistentCollection<java.util.SortedMap<K,V>>protected void updateFromSnapshot(java.io.ObjectInput in,
PersistentCollectionSnapshot snapshot)
updateFromSnapshot in class AbstractPersistentCollection<java.util.SortedMap<K,V>>public PersistentSortedMap<K,V> clone(boolean uninitialize)
PersistentCollectionclone in interface PersistentCollection<java.util.SortedMap<K,V>>clone in class AbstractPersistentCollection<java.util.SortedMap<K,V>>uninitialize - true to get an uninitialized clone of a lazy collection