com.wcohen.secondstring.expt
Class Blocker.Pair

java.lang.Object
  |
  +--com.wcohen.secondstring.expt.Blocker.Pair
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
Blocker

public static class Blocker.Pair
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Holds a pair of instances, with mutable distance between them.

See Also:
Serialized Form

Constructor Summary
Blocker.Pair(MatchData.Instance a, MatchData.Instance b)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 MatchData.Instance getA()
           
 MatchData.Instance getB()
           
 double getDistance()
           
 boolean isCorrect()
           
 void setDistance(double d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blocker.Pair

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

getA

public MatchData.Instance getA()

getB

public MatchData.Instance getB()

isCorrect

public boolean isCorrect()

getDistance

public double getDistance()

setDistance

public void setDistance(double d)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable