java.util.SortedSet . Underlying
collection is a TreeSet.
API Note
Incubating in terms of making this non-internal. These contracts will be getting cleaned up in following releases.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | PersistentSortedSet.SubSetProxy
wrapper for subSets to propagate write to its backing set |
| Modifier and Type | Field and Description |
|---|---|
| protected Comparator |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PersistentSortedSet(SharedSessionContractImplementor
The session session, Comparator<E> The sort comparator comparator)Constructs a PersistentSortedSet |
| public | PersistentSortedSet(SharedSessionContractImplementor
The session session, SortedSet<E> The underlying set data set)Constructs a PersistentSortedSet |
| Modifier and Type | Method and Description |
|---|---|
| public Comparator | comparator()
Implements java. null if this set uses the natural ordering of its elements.
|
| public E | first()
Implements java. |
| public SortedSet | headSet(E
high endpoint (exclusive) of the returned set toElement)Implements java. toElement.
|
| public E | last()
Implements java. |
| public void | |
| protected Serializable | snapshot(BasicCollectionPersister persister)
Deprecated
as a consequence of
BasicCollectionPersister being deprecated.
|
| public SortedSet | subSet(E
low endpoint (inclusive) of the returned set fromElement, E high endpoint (exclusive) of the returned set toElement)Implements java. fromElement, inclusive, to toElement,
exclusive.
|
| public SortedSet | tailSet(E
low endpoint (inclusive) of the returned set fromElement)Implements java. fromElement.
|
| comparator | back to summary |
|---|---|
| protected Comparator<? super E> comparator | |
| PersistentSortedSet | back to summary |
|---|---|
| public PersistentSortedSet() Constructs a PersistentSortedSet. This form needed for SOAP libraries, etc
| |
| PersistentSortedSet | back to summary |
|---|---|
| public PersistentSortedSet(SharedSessionContractImplementor session, Comparator<E> comparator) Constructs a PersistentSortedSet
| |
| PersistentSortedSet | back to summary |
|---|---|
| public PersistentSortedSet(SharedSessionContractImplementor session, SortedSet<E> set) Constructs a PersistentSortedSet
| |
| comparator | back to summary |
|---|---|
| public Comparator Implements java. Doc from java. Returns the comparator used to order the elements in this set,
or
| |
| first | back to summary |
|---|---|
| public E first() Implements java. Doc from java. Returns the first (lowest) element currently in this set.
| |
| headSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
strictly less than The returned set will throw an | |
| last | back to summary |
|---|---|
| public E last() Implements java. Doc from java. Returns the last (highest) element currently in this set.
| |
| setComparator | back to summary |
|---|---|
| public void setComparator(Comparator<? super E> comparator) | |
| snapshot | back to summary |
|---|---|
| protected Serializable snapshot(BasicCollectionPersister persister) throws HibernateException
Deprecated as a consequence of
| |
| subSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements range
from The returned set will throw an | |
| tailSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
greater than or equal to The returned set will throw an | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Comparator | comparator()
Implements java. null if this set uses the natural ordering of its elements.
|
| public E | first()
Implements java. |
| public SortedSet | headSet(E
high endpoint (exclusive) of the returned set toValue)Implements java. toElement.
|
| public E | last()
Implements java. |
| public SortedSet | subSet(E
low endpoint (inclusive) of the returned set fromValue, E high endpoint (exclusive) of the returned set toValue)Implements java. fromElement, inclusive, to toElement,
exclusive.
|
| public SortedSet | tailSet(E
low endpoint (inclusive) of the returned set fromValue)Implements java. fromElement.
|
| SubSetProxy | back to summary |
|---|---|
| pack-priv SubSetProxy(SortedSet<E> s) | |
| comparator | back to summary |
|---|---|
| public Comparator Implements java. Doc from java. Returns the comparator used to order the elements in this set,
or
| |
| first | back to summary |
|---|---|
| public E first() Implements java. Doc from java. Returns the first (lowest) element currently in this set.
| |
| headSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
strictly less than The returned set will throw an | |
| last | back to summary |
|---|---|
| public E last() Implements java. Doc from java. Returns the last (highest) element currently in this set.
| |
| subSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements range
from The returned set will throw an | |
| tailSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
greater than or equal to The returned set will throw an | |