Code example for NavigableSet

Methods: first

0
  @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));
  }