@Deprecated
public class FuzzyDoubleComparator
extends java.lang.Object
implements java.util.Comparator
After Ptolemy II 4.1, this class is not used any more. Use
GeneralComparator
instead.
Constructor and Description |
---|
FuzzyDoubleComparator()
Deprecated.
Construct a FuzzyDoubleComparator.
|
FuzzyDoubleComparator(double threshold)
Deprecated.
Construct a FuzzyDoubleComparator with the given threshold.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object first,
java.lang.Object second)
Deprecated.
Compare two objects according to a threshold.
|
double |
getThreshold()
Deprecated.
Return the fuzziness threshold.
|
void |
setThreshold(double threshold)
Deprecated.
Set the fuzziness threshold.
|
public FuzzyDoubleComparator()
public FuzzyDoubleComparator(double threshold)
threshold
- The thresholdpublic int compare(java.lang.Object first, java.lang.Object second)
If any of the argument is not a Double object, a ClassCastException will be thrown.
compare
in interface java.util.Comparator
first
- The first Double object.second
- The second Double object.public double getThreshold()
setThreshold(double)
public void setThreshold(double threshold)
threshold
- The threshold.getThreshold()