Code example for SortedSet

Methods: subSet

0
        return (SortedSet<E>) getCollection();
    } 
 
    //----------------------------------------------------------------------- 
    public SortedSet<E> subSet(E fromElement, E toElement) {
        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() { 
Experience pair programming with AI  Get Codota for Java