21 |
|
* additionally defines methods <tt>pollFirst</tt> and |
22 |
|
* <t>pollLast</tt> that return and remove the lowest and highest key, |
23 |
|
* if one exists, else returning <tt>null</tt>. |
24 |
+ |
* Methods <tt>navigableSubSet</tt>, <tt>navigableHeadSet</tt>, and |
25 |
+ |
* <tt>navigableTailSet</tt> differ from the similarly named |
26 |
+ |
* <tt>SortedSet</tt> methods only in that the returned sets |
27 |
+ |
* are guaranteed to obey the <tt>NavigableSet</tt> interface. |
28 |
|
* |
29 |
|
* <p> The return values of navigation methods may be ambiguous in |
30 |
|
* implementations that permit <tt>null</tt> elements. However, even |
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. Note: |
122 |
< |
* This method differs from <tt>SortedSet.subSet</tt> only in that |
123 |
< |
* the returned set is guaranteed to support the |
124 |
< |
* <tt>NavigableSet</tt> interface. |
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. |