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 |
< |
* |
45 |
< |
* @param o the value to match |
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 o cannot be compared with the elements |
48 |
> |
* @throws ClassCastException if e cannot be compared with the elements |
49 |
|
* currently in the set. |
50 |
< |
* @throws NullPointerException if o 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 o); |
53 |
> |
E ceiling(E e); |
54 |
|
|
55 |
|
/** |
56 |
|
* Returns an element strictly less than the given element, or |
57 |
|
* <tt>null</tt> if there is no such element. |
58 |
< |
* |
59 |
< |
* @param o the value to match |
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. |
62 |
< |
* @throws ClassCastException if o cannot be compared with the elements |
62 |
> |
* @throws ClassCastException if e cannot be compared with the elements |
63 |
|
* currently in the set. |
64 |
< |
* @throws NullPointerException if o is <tt>null</tt> |
64 |
> |
* @throws NullPointerException if e is <tt>null</tt> |
65 |
|
* and this set does not permit <tt>null</tt> elements |
66 |
|
*/ |
67 |
< |
E lower(E o); |
67 |
> |
E lower(E e); |
68 |
|
|
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 |
< |
* |
73 |
< |
* @param o the value to match |
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. |
76 |
< |
* @throws ClassCastException if o cannot be compared with the elements |
76 |
> |
* @throws ClassCastException if e cannot be compared with the elements |
77 |
|
* currently in the set. |
78 |
< |
* @throws NullPointerException if o is <tt>null</tt>. |
78 |
> |
* @throws NullPointerException if e is <tt>null</tt>. |
79 |
|
* and this set does not permit <tt>null</tt> elements |
80 |
|
*/ |
81 |
< |
E floor(E o); |
81 |
> |
E floor(E e); |
82 |
|
|
83 |
|
/** |
84 |
|
* Returns an element strictly greater than the given element, or |
85 |
|
* <tt>null</tt> if there is no such element. |
86 |
< |
* |
87 |
< |
* @param o the value to match |
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. |
90 |
< |
* @throws ClassCastException if o cannot be compared with the elements |
90 |
> |
* @throws ClassCastException if e cannot be compared with the elements |
91 |
|
* currently in the set. |
92 |
< |
* @throws NullPointerException if o is <tt>null</tt> |
92 |
> |
* @throws NullPointerException if e is <tt>null</tt> |
93 |
|
* and this set does not permit <tt>null</tt> elements |
94 |
|
*/ |
95 |
< |
E higher(E o); |
95 |
> |
E higher(E e); |
96 |
|
|
97 |
|
/** |
98 |
|
* Retrieves and removes the first (lowest) 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); |