Lines Matching refs:toElement
197 * {@code fromElement} to {@code toElement}. If {@code fromElement} and
198 * {@code toElement} are equal, the returned set is empty unless {@code
210 * @param toElement high endpoint of the returned set
214 * {@code fromElement}, inclusive, to {@code toElement}, exclusive
216 * {@code toElement} cannot be compared to one another using this
220 * {@code toElement} cannot be compared to elements currently in
223 * {@code toElement} is null and this set does
226 * greater than {@code toElement}; or if this set itself
228 * {@code toElement} lies outside the bounds of the range.
231 E toElement, boolean toInclusive);
235 * (or equal to, if {@code inclusive} is true) {@code toElement}. The
243 * @param toElement high endpoint of the returned set
247 * (or equal to, if {@code inclusive} is true) {@code toElement}
248 * @throws ClassCastException if {@code toElement} is not compatible
250 * if {@code toElement} does not implement {@link Comparable}).
252 * exception if {@code toElement} cannot be compared to elements
254 * @throws NullPointerException if {@code toElement} is null and
257 * restricted range, and {@code toElement} lies outside the
260 NavigableSet<E> headSet(E toElement, boolean inclusive);
294 * <p>Equivalent to {@code subSet(fromElement, true, toElement, false)}.
300 SortedSet<E> subSet(E fromElement, E toElement);
305 * <p>Equivalent to {@code headSet(toElement, false)}.
311 SortedSet<E> headSet(E toElement);