Code example for NavigableSet

Methods: higher

    return Iterators.getNext(tailSet(e, true).iterator(), null);
  public E higher(E e) {
    return delegate().higher(e);
   * A sensible definition of {@link #higher} in terms of the {@code iterator} method of 
   * {@link #tailSet(Object, boolean)}. If you override {@link #tailSet(Object, boolean)}, you may 
   * wish to override {@link #higher} to forward to this implementation. 
  protected E standardHigher(E e) {
    return Iterators.getNext(tailSet(e, false).iterator(), null);
  public E pollFirst() { 
    return delegate().pollFirst();