Code example for SortedSet

Methods: tailSet

0
        SortedSet sub = getSortedSet().headSet(toElement);
        return new PredicatedSortedSet<E>(sub, predicate);
    } 
 
    public SortedSet<E> tailSet(E fromElement) {
        SortedSet sub = getSortedSet().tailSet(fromElement);
        return new PredicatedSortedSet<E>(sub, predicate);
    } 
 
    public E first() { 
        return getSortedSet().first();
    } 
 
    public E last() { 
        return getSortedSet().last();
    } 
 
    public Comparator<? super E> comparator() {
        return getSortedSet().comparator();
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE