|
CoMa Container Classes | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ccc.util.MinMax
A collection of trivial algorithms on containers of ccc package.
CCC 3.01| Constructor Summary | |
MinMax()
|
|
| Method Summary | |
static Iterator |
max(Container c)
Find the maximal element in a container. |
static Iterator |
max(Container c,
Comparator cmp)
Find the maximal element in a container with respect to the given ordering. |
static Iterator |
min(Container c)
Find the minimal element in a container. |
static Iterator |
min(Container c,
Comparator cmp)
Find the minimal element in a container with respect to the given ordering. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MinMax()
| Method Detail |
public static Iterator max(Container c)
Comparable otherwise a
ClassCastException is thrown.
c - container where to search for the maximal element.
ClassCastException - if the object's type
prevents them from being compared pairwise.Comparable
public static Iterator max(Container c,
Comparator cmp)
Comparable otherwise a
ClassCastException is thrown.
c - container where to search for the maximal element.cmp - comparator giving the ordering of the elements.
ClassCastException - if the object's type
prevents them from being compared pairwise.Comparator,
Comparablepublic static Iterator min(Container c)
Comparable otherwise a
ClassCastException is thrown.
c - container where to search for the minimal element.
ClassCastException - if the object's type
prevents them from being compared pairwise.Comparable
public static Iterator min(Container c,
Comparator cmp)
Comparable otherwise a
ClassCastException is thrown.
c - container where to search for the minimal element.cmp - comparator giving the ordering of the elements.
ClassCastException - if the object's type
prevents them from being compared pairwise.Comparator,
Comparable
|
Written for CoMa 2003 Academic Development Version 4.0.0 from Thu, Aug/28/2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||