Code example for NavigableSet

Methods: iterator

0
      return new NavigableElementSet<E>(multiset().descendingMultiset()); 
    } 
 
    @Override 
    public Iterator<E> descendingIterator() {
      return descendingSet().iterator();
    } 
 
    @Override 
    public E pollFirst() { 
      return getElementOrNull(multiset().pollFirstEntry()); 
    } 
 
    @Override 
    public E pollLast() { 
      return getElementOrNull(multiset().pollLastEntry()); 
    } 
 
    @Override 
    public NavigableSet<E> subSet(
Experience pair programming with AI  Get Codota for Java