Code example for NavigableSet

Methods: floorcomparator

0
    delegate.clear();
  } 
 
  @SuppressWarnings("unchecked") 
  @Override public Comparator<? super E> comparator() {
    Comparator<? super E> comparator = delegate.comparator();
    if (comparator == null) {
      comparator = NATURAL_ORDER;
    } 
    return comparator;
  } 
 
  @Override public boolean contains(Object object) {
    return delegate.contains(checkValid(object));
  } 
 
  @Override public boolean containsAll(Collection<?> c) {
    return delegate.containsAll(c);
  } 
 
  @Override public Iterator<E> descendingIterator() {
    return delegate.descendingIterator();
  } 
 
  @Override public NavigableSet<E> descendingSet() {
    return new SafeTreeSet<E>(delegate.descendingSet());
  } 
 
  @Override public E first() { 
    return delegate.first();
  } 
 
  @Override public E floor(E e) {
    return delegate.floor(checkValid(e));
  } 
 
  @Override public SortedSet<E> headSet(E toElement) {
    return headSet(toElement, false);
  } 
Experience pair programming with AI  Get Codota for Java