|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SortedSet<E>
SortedSet is a Set which iterates its elements in sorted order.
| Method Summary | |
|---|---|
Comparator<? super E> |
comparator()
Returns the Comparator used to compare elements in this SortedSet. |
E |
first()
Answer the first sorted element in this SortedSet. |
SortedSet<E> |
headSet(E end)
Returns 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)
Returns 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 start)
Returns a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element. |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
Comparator<? super E> comparator()
E first()
NoSuchElementException - when this SortedSet is emptySortedSet<E> headSet(E end)
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 elementsE last()
NoSuchElementException - when this SortedSet is empty
SortedSet<E> subSet(E start,
E end)
start - the start elementend - 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 elementSortedSet<E> tailSet(E start)
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
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||