Code example for SortedSet

Methods: subSet

0
        return (SortedSet<E>) getCollection();
    } 
 
    //----------------------------------------------------------------------- 
    public SortedSet<E> subSet(E fromElement, E toElement) {
        return getSortedSet().subSet(fromElement, toElement);
    } 
 
    public SortedSet<E> headSet(E toElement) {
        return getSortedSet().headSet(toElement);
    } 
 
    public SortedSet<E> tailSet(E fromElement) {
        return getSortedSet().tailSet(fromElement);
    } 
 
    public E first() { 
        return getSortedSet().first();
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java