weiss.util
Interface  SortedSet
- All Superinterfaces: 
 - Collection, java.io.Serializable, Set
 
- All Known Implementing Classes: 
 - TreeSet
 
- public interface SortedSet
- extends Set
  
SortedSet interface.
| 
Method Summary | 
 Comparator | 
comparator()
 
          Return the comparator used by this SortedSet. | 
 java.lang.Object | 
first()
 
          Find the smallest item in the set. | 
 java.lang.Object | 
last()
 
          Find the largest item in the set. | 
 
| Methods inherited from interface weiss.util.Set | 
getMatch | 
 
 
comparator
public Comparator comparator()
- Return the comparator used by this SortedSet.
 
- Returns:
 - the comparator or null if the default comparator is used.
 
 
 
first
public java.lang.Object first()
- Find the smallest item in the set.
 
- Returns:
 - the smallest item.
 - Throws:
 NoSuchElementException - if the set is empty.
 
 
last
public java.lang.Object last()
- Find the largest item in the set.
 
- Returns:
 - the largest item.
 - Throws:
 NoSuchElementException - if the set is empty.