38 |
|
/** |
39 |
|
* Returns an element greater than or equal to the given element, or |
40 |
|
* <tt>null</tt> if there is no such element. |
41 |
< |
* |
41 |
> |
* |
42 |
|
* @param o the value to match |
43 |
|
* @return an element greater than or equal to given element, or |
44 |
|
* <tt>null</tt> if there is no such element. |
45 |
|
* @throws ClassCastException if o cannot be compared with the elements |
46 |
|
* currently in the set. |
47 |
< |
* @throws NullPointerException if o is <tt>null</tt> |
47 |
> |
* @throws NullPointerException if o is <tt>null</tt> |
48 |
|
* and this set deas not permit <tt>null</tt> elements |
49 |
|
*/ |
50 |
|
public E ceiling(E o); |
52 |
|
/** |
53 |
|
* Returns an element strictly less than the given element, or |
54 |
|
* <tt>null</tt> if there is no such element. |
55 |
< |
* |
55 |
> |
* |
56 |
|
* @param o the value to match |
57 |
|
* @return the greatest element less than the given element, or |
58 |
|
* <tt>null</tt> if there is no such element. |
66 |
|
/** |
67 |
|
* Returns an element less than or equal to the given element, or |
68 |
|
* <tt>null</tt> if there is no such element. |
69 |
< |
* |
69 |
> |
* |
70 |
|
* @param o the value to match |
71 |
|
* @return the greatest element less than or equal to given |
72 |
|
* element, or <tt>null</tt> if there is no such element. |
80 |
|
/** |
81 |
|
* Returns an element strictly greater than the given element, or |
82 |
|
* <tt>null</tt> if there is no such element. |
83 |
< |
* |
83 |
> |
* |
84 |
|
* @param o the value to match |
85 |
|
* @return the least element greater than the given element, or |
86 |
|
* <tt>null</tt> if there is no such element. |
107 |
|
|
108 |
|
/** |
109 |
|
* Returns an iterator over the elements in this collection, in |
110 |
< |
* descending order. |
111 |
< |
* |
110 |
> |
* descending order. |
111 |
> |
* |
112 |
|
* @return an <tt>Iterator</tt> over the elements in this collection |
113 |
|
*/ |
114 |
|
Iterator<E> descendingIterator(); |
119 |
|
* <tt>fromElement</tt> and <tt>toElement</tt> are equal, the returned |
120 |
|
* sorted set is empty.) The returned sorted set is backed by this set, |
121 |
|
* so changes in the returned sorted set are reflected in this set, and |
122 |
< |
* vice-versa. |
122 |
> |
* vice-versa. |
123 |
|
* @param fromElement low endpoint (inclusive) of the subSet. |
124 |
|
* @param toElement high endpoint (exclusive) of the subSet. |
125 |
|
* @return a view of the portion of this set whose elements range from |
132 |
|
* @throws IllegalArgumentException if <tt>fromElement</tt> is |
133 |
|
* greater than <tt>toElement</tt>. |
134 |
|
* @throws NullPointerException if <tt>fromElement</tt> or |
135 |
< |
* <tt>toElement</tt> is <tt>null</tt> |
135 |
> |
* <tt>toElement</tt> is <tt>null</tt> |
136 |
|
* and this set deas not permit <tt>null</tt> elements |
137 |
|
*/ |
138 |
|
public NavigableSet<E> subSet(E fromElement, E toElement); |
141 |
|
* Returns a view of the portion of this set whose elements are strictly |
142 |
|
* less than <tt>toElement</tt>. The returned sorted set is backed by |
143 |
|
* this set, so changes in the returned sorted set are reflected in this |
144 |
< |
* set, and vice-versa. |
144 |
> |
* set, and vice-versa. |
145 |
|
* @param toElement high endpoint (exclusive) of the headSet. |
146 |
|
* @return a view of the portion of this set whose elements are strictly |
147 |
|
* less than toElement. |