![]() |
|
Contents |
Public Member Functions | |
| Comparator<?super E > | comparator () |
| Answers the Comparator used to compare elements in this SortedSet. | |
| E | first () |
| Answer the first sorted element in this SortedSet. | |
| SortedSet< E > | headSet (E before) |
| Answers a SortedSet of the specified portion of this SortedSet which contains elements less than the end element. | |
| E | last () |
| Answer the last sorted element in this SortedSet. | |
| SortedSet< E > | subSet (E start, E end) |
| Answers a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element but less than the end element. | |
| SortedSet< E > | tailSet (E after) |
| Answers a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element. | |
Package Functions | |
| UnmodifiableSortedSet (SortedSet< E > set) | |
Private Attributes | |
| final SortedSet< E > | ss |
Static Private Attributes | |
| static final long | serialVersionUID = -4929149591599911165L |
| UnmodifiableSortedSet | ( | SortedSet< E > | set | ) | [package] |
| Comparator<? super E> comparator | ( | ) |
Answers the Comparator used to compare elements in this SortedSet.
Implements SortedSet< E >.
| E first | ( | ) |
Answer the first sorted element in this SortedSet.
| NoSuchElementException | when this SortedSet is empty |
Implements SortedSet< E >.
| SortedSet<E> headSet | ( | E | end | ) |
Answers a SortedSet of the specified portion of this SortedSet which contains elements less than the end element.
The returned SortedSet is backed by this SortedSet so changes to one are reflected by the other.
| end | the end element |
end| ClassCastException | when the class of the end element is inappropriate for this SubSet | |
| NullPointerException | when the end element is null and this SortedSet does not support null elements |
Implements SortedSet< E >.
| E last | ( | ) |
Answer the last sorted element in this SortedSet.
| NoSuchElementException | when this SortedSet is empty |
Implements SortedSet< E >.
| SortedSet<E> subSet | ( | E | start, | |
| E | end | |||
| ) |
Answers a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element but less than the end element.
The returned SortedSet is backed by this SortedMap so changes to one are reflected by the other.
| start | the start element | |
| end | the end element |
start and less than end| ClassCastException | when the class of the start or end element is inappropriate for this SubSet | |
| NullPointerException | when the start or end element is null and this SortedSet does not support null elements | |
| IllegalArgumentException | when the start element is greater than the end element |
Implements SortedSet< E >.
| SortedSet<E> tailSet | ( | E | start | ) |
Answers a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element.
The returned SortedSet is backed by this SortedSet so changes to one are reflected by the other.
| start | the start element |
start| ClassCastException | when the class of the start element is inappropriate for this SubSet | |
| NullPointerException | when the start element is null and this SortedSet does not support null elements |
Implements SortedSet< E >.
final long serialVersionUID = -4929149591599911165L [static, private] |
Reimplemented from Collections.UnmodifiableSet< E >.
final SortedSet<E> ss [private] |