NavigableSet.tailSet

Returns a view of the portion of this set whose elements are greater than (or equal to, if {@code inclusive} is true) {@code fromElement}. The returned set is backed by this set, so changes in the returned set are reflected in this set, and vice-versa. The returned set supports all optional set operations that this set supports.

<p>The returned set will throw an {@code IllegalArgumentException} on an attempt to insert an element outside its range.

@param fromElement low endpoint of the returned set @param inclusive {@code true} if the low endpoint is to be included in the returned view @return a view of the portion of this set whose elements are greater than or equal to {@code fromElement} @throws ClassCastException if {@code fromElement} is not compatible with this set's comparator (or, if the set has no comparator, if {@code fromElement} does not implement {@link Comparable}). Implementations may, but are not required to, throw this exception if {@code fromElement} cannot be compared to elements currently in the set. @throws NullPointerException if {@code fromElement} is null and this set does not permit null elements @throws IllegalArgumentException if this set itself has a restricted range, and {@code fromElement} lies outside the bounds of the range

  1. NavigableSet!(E) tailSet(E fromElement, bool inclusive)
    interface NavigableSet(E)
  2. SortedSet!(E) tailSet(E fromElement)

Meta