Code example for SortedSet

Methods: last

    public Object first() {
        return getSortedSet().first();
    public Object last() {
        return getSortedSet().last();
    public Comparator comparator() {
        return getSortedSet().comparator();
    public SortedSet subSet(Object fromElement, Object toElement) {
        SortedSet set = getSortedSet().subSet(fromElement, toElement);
        return new TransformedSortedSet(set, transformer);
    public SortedSet headSet(Object toElement) {
        SortedSet set = getSortedSet().headSet(toElement);
Connect your IDE to all the code out there  Get Codota for Java