41 |
|
/** |
42 |
|
* Returns an element greater than or equal to the given element, or |
43 |
|
* <tt>null</tt> if there is no such element. |
44 |
< |
* |
44 |
> |
* |
45 |
|
* @param e the value to match |
46 |
|
* @return an element greater than or equal to given element, or |
47 |
|
* <tt>null</tt> if there is no such element. |
48 |
|
* @throws ClassCastException if e cannot be compared with the elements |
49 |
|
* currently in the set. |
50 |
< |
* @throws NullPointerException if e is <tt>null</tt> |
50 |
> |
* @throws NullPointerException if e is <tt>null</tt> |
51 |
|
* and this set does not permit <tt>null</tt> elements |
52 |
|
*/ |
53 |
|
E ceiling(E e); |
55 |
|
/** |
56 |
|
* Returns an element strictly less than the given element, or |
57 |
|
* <tt>null</tt> if there is no such element. |
58 |
< |
* |
58 |
> |
* |
59 |
|
* @param e the value to match |
60 |
|
* @return the greatest element less than the given element, or |
61 |
|
* <tt>null</tt> if there is no such element. |
69 |
|
/** |
70 |
|
* Returns an element less than or equal to the given element, or |
71 |
|
* <tt>null</tt> if there is no such element. |
72 |
< |
* |
72 |
> |
* |
73 |
|
* @param e the value to match |
74 |
|
* @return the greatest element less than or equal to given |
75 |
|
* element, or <tt>null</tt> if there is no such element. |
83 |
|
/** |
84 |
|
* Returns an element strictly greater than the given element, or |
85 |
|
* <tt>null</tt> if there is no such element. |
86 |
< |
* |
86 |
> |
* |
87 |
|
* @param e the value to match |
88 |
|
* @return the least element greater than the given element, or |
89 |
|
* <tt>null</tt> if there is no such element. |
110 |
|
|
111 |
|
/** |
112 |
|
* Returns an iterator over the elements in this collection, in |
113 |
< |
* descending order. |
114 |
< |
* |
113 |
> |
* descending order. |
114 |
> |
* |
115 |
|
* @return an <tt>Iterator</tt> over the elements in this collection |
116 |
|
*/ |
117 |
|
Iterator<E> descendingIterator(); |
122 |
|
* exclusive. (If <tt>fromElement</tt> and <tt>toElement</tt> are |
123 |
|
* equal, the returned navigable set is empty.) The returned |
124 |
|
* navigable set is backed by this set, so changes in the returned |
125 |
< |
* navigable set are reflected in this set, and vice-versa. |
125 |
> |
* navigable set are reflected in this set, and vice-versa. |
126 |
|
* |
127 |
|
* @param fromElement low endpoint (inclusive) of the subSet. |
128 |
|
* @param toElement high endpoint (exclusive) of the subSet. |
136 |
|
* @throws IllegalArgumentException if <tt>fromElement</tt> is |
137 |
|
* greater than <tt>toElement</tt>. |
138 |
|
* @throws NullPointerException if <tt>fromElement</tt> or |
139 |
< |
* <tt>toElement</tt> is <tt>null</tt> |
139 |
> |
* <tt>toElement</tt> is <tt>null</tt> |
140 |
|
* and this set does not permit <tt>null</tt> elements |
141 |
|
*/ |
142 |
|
NavigableSet<E> navigableSubSet(E fromElement, E toElement); |