Code example for SortedSet

Methods: headSet

0
        SortedSet sub = getSortedSet().subSet(fromElement, toElement);
        return new PredicatedSortedSet<E>(sub, predicate);
    } 
 
    public SortedSet<E> headSet(E toElement) {
        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();
Contextual code suggestions in your IDE  Get Codota for Java