Code example for NavigableSet

Methods: pollFirst

    return Iterators.getNext(tailSet(e, false).iterator(), null);
  public E pollFirst() { 
    return delegate().pollFirst();
   * A sensible definition of {@link #pollFirst} in terms of the {@code iterator} method. If you 
   * override {@link #iterator} you may wish to override {@link #pollFirst} to forward to this 
   * implementation. 
  protected E standardPollFirst() { 
    return poll(iterator());
  public E pollLast() { 
    return delegate().pollLast();
Contextual code suggestions in your IDE  Get Codota for Java