| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--weiss.util.Collections
Instanceless class contains static methods that operate on collections.
| Method Summary | |
static java.lang.Object | 
max(Collection coll)
Returns the maximum object in the collection, using default ordering  | 
static java.lang.Object | 
max(Collection coll,
    Comparator cmp)
Returns the maximum object in the collection, using comparator.  | 
static Comparator | 
reverseOrder()
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
public static java.lang.Object max(Collection coll)
coll - the collection.NoSuchElementException - if coll is empty.java.lang.ClassCastException - if objects in collection cannot be compared.
public static java.lang.Object max(Collection coll,
                                   Comparator cmp)
coll - the collection.cmp - the comparator.NoSuchElementException - if coll is empty.java.lang.ClassCastException - if objects in collection cannot be compared.public static Comparator reverseOrder()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||