com.wcohen.ss.expt
Class Blocker.Pair

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface com.wcohen.ss.api.DistanceInstance
INCREASING_DISTANCE
 
Constructor Summary
Blocker.Pair(MatchData.Instance a, MatchData.Instance b, boolean sameIds)
           
 
Method Summary
 int compareTo(Blocker.Pair other)
           
 StringWrapper getA()
           
 StringWrapper getB()
           
 double getDistance()
           
 boolean isCorrect()
           
 void setDistance(double d)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Blocker.Pair

public Blocker.Pair(MatchData.Instance a,
                    MatchData.Instance b,
                    boolean sameIds)
Method Detail

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>