public class PersistentSortedSet<E> extends AbstractPersistentSimpleCollection<E,java.util.SortedSet<E>> implements java.util.SortedSet<E>, PersistentSortedCollection<java.util.SortedSet<E>,E>
PersistentCollection.ChangeListener<C>, PersistentCollection.InitializationCallback<C>, PersistentCollection.InitializationListener<C>, PersistentCollection.Initializer<C>| Constructor and Description |
|---|
PersistentSortedSet() |
PersistentSortedSet(boolean initialized) |
PersistentSortedSet(java.util.SortedSet<E> collection) |
PersistentSortedSet(java.util.SortedSet<E> collection,
boolean clone) |
| Modifier and Type | Method and Description |
|---|---|
PersistentSortedSet<E> |
clone(boolean uninitialize)
Clone a persistent collection
|
java.util.Comparator<? super E> |
comparator()
Comparator for the sorting
|
protected PersistentCollectionSnapshot |
createSnapshot(java.lang.Object io,
boolean forReading) |
protected void |
doInitialize(java.util.SortedSet<E> sortedSet,
boolean empty) |
E |
first() |
java.util.SortedSet<E> |
headSet(E toElement) |
E |
last() |
java.util.SortedSet<E> |
subSet(E fromElement,
E toElement) |
java.util.SortedSet<E> |
tailSet(E fromElement) |
protected void |
updateFromSnapshot(java.io.ObjectInput in,
PersistentCollectionSnapshot snapshot) |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayaddListener, 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, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayaddListener, addListener, clearDirty, dirty, getLoader, initialize, initializing, isDirty, removeListener, removeListener, setLoader, uninitialize, wasInitialized, withInitializedpublic PersistentSortedSet()
public PersistentSortedSet(boolean initialized)
public PersistentSortedSet(java.util.SortedSet<E> collection)
public PersistentSortedSet(java.util.SortedSet<E> collection, boolean clone)
protected void doInitialize(java.util.SortedSet<E> sortedSet, boolean empty)
doInitialize in class AbstractPersistentCollection<java.util.SortedSet<E>>public java.util.Comparator<? super E> comparator()
PersistentSortedCollectioncomparator in interface java.util.SortedSet<E>comparator in interface PersistentSortedCollection<java.util.SortedSet<E>,E>public java.util.SortedSet<E> subSet(E fromElement, E toElement)
subSet in interface java.util.SortedSet<E>public java.util.SortedSet<E> headSet(E toElement)
headSet in interface java.util.SortedSet<E>public java.util.SortedSet<E> tailSet(E fromElement)
tailSet in interface java.util.SortedSet<E>protected PersistentCollectionSnapshot createSnapshot(java.lang.Object io, boolean forReading)
createSnapshot in class AbstractPersistentSimpleCollection<E,java.util.SortedSet<E>>protected void updateFromSnapshot(java.io.ObjectInput in,
PersistentCollectionSnapshot snapshot)
updateFromSnapshot in class AbstractPersistentCollection<java.util.SortedSet<E>>public PersistentSortedSet<E> clone(boolean uninitialize)
PersistentCollectionclone in interface PersistentCollection<java.util.SortedSet<E>>clone in class AbstractPersistentCollection<java.util.SortedSet<E>>uninitialize - true to get an uninitialized clone of a lazy collection