Code example for SortedSet

Methods: first

0
        return (SortedSet) collection;
    } 
 
    //----------------------------------------------------------------------- 
    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);
    }