Class ObjectComparator
- java.lang.Object
-
- org.openjump.core.apitools.comparisonandsorting.ObjectComparator
-
public class ObjectComparator extends Object
- Version:
- $Rev: 2509 $ modified: [sstein]: 16.Feb.2009 changed logger-entries to comments
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
-
-
Constructor Summary
Constructors Constructor Description ObjectComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcompare(Object o1, Object o2)static doublegetDoubleValue(Object o)Method to generate adoublevalue out of different number objects.
-
-
-
Method Detail
-
getDoubleValue
public static double getDoubleValue(Object o)
Method to generate adoublevalue out of different number objects.- Parameters:
o- an object- Returns:
- a double value representing to given object or
Double.NANif it can't be parsed
-
-