Code example for NavigableSet

Methods: tailSetcomparator

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);
  } 
 
  @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) {
    return new SafeTreeSet<E>( 
        delegate.headSet(checkValid(toElement), inclusive));
  } 
 
  @Override public E higher(E e) {
    return delegate.higher(checkValid(e));
  } 
 
  @Override public boolean isEmpty() { 
    return delegate.isEmpty();
  } 
 
  @Override public Iterator<E> iterator() {
    return delegate.iterator();
  } 
 
  @Override public E last() { 
    return delegate.last();
  } 
 
  @Override public E lower(E e) {
    return delegate.lower(checkValid(e));
  } 
 
  @Override public E pollFirst() { 
    return delegate.pollFirst();
  } 
 
  @Override public E pollLast() { 
    return delegate.pollLast();
  } 
 
  @Override public boolean remove(Object object) {
    return delegate.remove(checkValid(object));
  } 
 
  @Override public boolean removeAll(Collection<?> c) {
    return delegate.removeAll(c);
  } 
 
  @Override public boolean retainAll(Collection<?> c) {
    return delegate.retainAll(c);
  } 
 
  @Override public int size() { 
    return delegate.size();
  } 
 
  @Override public NavigableSet<E> subSet(
      E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
    return new SafeTreeSet<E>( 
        delegate.subSet(checkValid(fromElement), fromInclusive,
            checkValid(toElement), toInclusive));
  } 
 
  @Override public SortedSet<E> subSet(E fromElement, E toElement) {
    return subSet(fromElement, true, toElement, false);
  } 
 
  @Override public SortedSet<E> tailSet(E fromElement) {
    return tailSet(fromElement, true);
  } 
 
  @Override public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
    return delegate.tailSet(checkValid(fromElement), inclusive);
  } 
 
  @Override public Object[] toArray() {
    return delegate.toArray();
  } 
Connect your IDE to all the code out there  Get Codota for Java