Code example for NavigableSet

Methods: floor

0
    return Iterators.getNext(headSet(e, false).descendingIterator(), null);
  } 
 
  @Override 
  public E floor(E e) {
    return delegate().floor(e);
  } 
 
  /** 
   * A sensible definition of {@link #floor} in terms of the {@code descendingIterator} method of 
   * {@link #headSet(Object, boolean)}. If you override {@link #headSet(Object, boolean)}, you may 
   * wish to override {@link #floor} to forward to this implementation. 
   */ 
  protected E standardFloor(E e) {
    return Iterators.getNext(headSet(e, true).descendingIterator(), null);
  } 
 
  @Override 
  public E ceiling(E e) {
    return delegate().ceiling(e);
Contextual code suggestions in your IDE  Get Codota for Java