PCJ API
Version 1.2

bak.pcj
Interface DoubleComparator


public interface DoubleComparator

This interface represents comparators of double values. The comparator interface is used for defining new orderings for double values.

Since:
1.0
See Also:
Comparator

Method Summary
 int compare(double v1, double v2)
          Compares two double values for order.
 

Method Detail

compare

public int compare(double v1,
                   double v2)
Compares two double values for order.

Parameters:
v1 - the first double value in the comparison.
v2 - the second double value in the comparison.
Returns:
a negative int value if v1 < v2, 0 if v1 is equal to v2, or a positive integer if v1 > v2.

PCJ API
Version 1.2

Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.

Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.

Hosted by SourceForge.net
SourceForge.net Logo