edu.indiana.iucbrf.feature
Class OneFeatureComparator
java.lang.Object
edu.indiana.iucbrf.feature.OneFeatureComparator
- All Implemented Interfaces:
- java.util.Comparator
public class OneFeatureComparator
- extends java.lang.Object
- implements java.util.Comparator
Compares two cases based only on a single feature.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
featureToCompare
protected FeatureKey featureToCompare
OneFeatureComparator
public OneFeatureComparator()
- Creates a new instance of OneFeatureComparator
OneFeatureComparator
public OneFeatureComparator(FeatureKey key)
- Creates a new instance of OneFeatureComparator
setFeatureToCompare
public void setFeatureToCompare(FeatureKey key)
compare
public int compare(java.lang.Object case1,
java.lang.Object case2)
- Specified by:
compare
in interface java.util.Comparator