org.granite.client.persistence.collection
Class PersistentSortedSet<E>
java.lang.Object
org.granite.client.persistence.collection.AbstractPersistentCollection<C>
org.granite.client.persistence.collection.AbstractPersistentSimpleCollection<E,SortedSet<E>>
org.granite.client.persistence.collection.PersistentSortedSet<E>
- All Implemented Interfaces:
- Externalizable, Serializable, Iterable<E>, Collection<E>, Set<E>, SortedSet<E>, PersistentCollection, PersistentSortedCollection<E>
public class PersistentSortedSet<E>
- extends AbstractPersistentSimpleCollection<E,SortedSet<E>>
- implements SortedSet<E>, PersistentSortedCollection<E>
- Author:
- Franck WOLFF
- See Also:
- Serialized Form
| Methods inherited from class org.granite.client.persistence.collection.AbstractPersistentSimpleCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
PersistentSortedSet
public PersistentSortedSet()
PersistentSortedSet
public PersistentSortedSet(SortedSet<E> collection)
PersistentSortedSet
public PersistentSortedSet(SortedSet<E> collection,
boolean clone)
comparator
public Comparator<? super E> comparator()
- Specified by:
comparator in interface SortedSet<E>- Specified by:
comparator in interface PersistentSortedCollection<E>
subSet
public SortedSet<E> subSet(E fromElement,
E toElement)
- Specified by:
subSet in interface SortedSet<E>
headSet
public SortedSet<E> headSet(E toElement)
- Specified by:
headSet in interface SortedSet<E>
tailSet
public SortedSet<E> tailSet(E fromElement)
- Specified by:
tailSet in interface SortedSet<E>
first
public E first()
- Specified by:
first in interface SortedSet<E>
last
public E last()
- Specified by:
last in interface SortedSet<E>
createSnapshot
protected org.granite.messaging.persistence.PersistentCollectionSnapshot createSnapshot(boolean forReading)
- Overrides:
createSnapshot in class AbstractPersistentSimpleCollection<E,SortedSet<E>>
updateFromSnapshot
protected void updateFromSnapshot(ObjectInput in,
org.granite.messaging.persistence.PersistentCollectionSnapshot snapshot)
- Specified by:
updateFromSnapshot in class AbstractPersistentCollection<SortedSet<E>>