Code example for NavigableSet

Methods: lower

  protected abstract NavigableSet<E> delegate();
  public E lower(E e) {
    return delegate().lower(e);
   * A sensible definition of {@link #lower} 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 #lower} to forward to this implementation. 
  protected E standardLower(E e) {
    return Iterators.getNext(headSet(e, false).descendingIterator(), null);
  public E floor(E e) {
    return delegate().floor(e);