|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A class used to find the weight of objects, such as graph edges.
Remember that a comparator is passed to methods that need to regard certain objects as comparable. Similarly, a weighter is passed to methods that need to regard certain objects as weighted.
For example, an implementation might use any of the following methods to find the weight of a graph edge e:
| Method Summary | |
double |
weight(java.lang.Object o)
Find the weight of this object in an appropriate way. |
| Method Detail |
public double weight(java.lang.Object o)
java.lang.ClassCastException - - if we don't know how.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||