com.wcohen.ss.expt
Class Blocker.Pair
java.lang.Object
com.wcohen.ss.expt.Blocker.Pair
- All Implemented Interfaces:
- DistanceInstance, java.io.Serializable, java.lang.Comparable<Blocker.Pair>
- Enclosing class:
- Blocker
public static class Blocker.Pair
- extends java.lang.Object
- implements java.lang.Comparable<Blocker.Pair>, java.io.Serializable, DistanceInstance
Holds a pair of instances, with mutable distance between them.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Blocker.Pair
public Blocker.Pair(MatchData.Instance a,
MatchData.Instance b,
boolean sameIds)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getA
public StringWrapper getA()
- Specified by:
getA
in interface DistanceInstance
getB
public StringWrapper getB()
- Specified by:
getB
in interface DistanceInstance
isCorrect
public boolean isCorrect()
- Specified by:
isCorrect
in interface DistanceInstance
getDistance
public double getDistance()
- Specified by:
getDistance
in interface DistanceInstance
setDistance
public void setDistance(double d)
- Specified by:
setDistance
in interface DistanceInstance
compareTo
public int compareTo(Blocker.Pair other)
- Specified by:
compareTo
in interface java.lang.Comparable<Blocker.Pair>