| bak.pcj.DoubleComparator
DoubleComparator | public interface DoubleComparator (Code) | | This interface represents comparators of double values. The
comparator interface is used for defining new orderings for
double values.
See Also: java.util.Comparator author: Søren Bak version: 1.0 2002/29/12 since: 1.0 |
Method Summary | |
int | compare(double v1, double v2) Compares two double values for order.
Parameters: v1 - the first double value in the comparison. Parameters: v2 - the second double value in the comparison. |
compare | int compare(double v1, double v2)(Code) | | Compares two double values for order.
Parameters: v1 - the first double value in the comparison. Parameters: v2 - the second double value in the comparison. a negative int value if v1 < v2,0 if v1 is equal to v2,or a positive integer if v1 > v2. |
|
|