edu.stanford.nlp.util
Class ScoredPair

java.lang.Object
  |
  +--edu.stanford.nlp.util.Pair
        |
        +--edu.stanford.nlp.util.ScoredPair
All Implemented Interfaces:
Comparable, Scored, Serializable

public class ScoredPair
extends Pair
implements Scored

Scored Pair: Class for holding a scored pair of objects

See Also:
Serialized Form

Field Summary
 double score
           
 
Fields inherited from class edu.stanford.nlp.util.Pair
first, second
 
Constructor Summary
ScoredPair()
           
ScoredPair(Object first, Object second, double score)
           
 
Method Summary
 double score()
          Return the score of this thing
 void setScore(double score)
           
 String toString()
           
 
Methods inherited from class edu.stanford.nlp.util.Pair
compareTo, equals, first, hashCode, read, save, second
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

score

public double score
Constructor Detail

ScoredPair

public ScoredPair()

ScoredPair

public ScoredPair(Object first,
                  Object second,
                  double score)
Method Detail

score

public double score()
Description copied from interface: Scored
Return the score of this thing

Specified by:
score in interface Scored

setScore

public void setScore(double score)

toString

public String toString()
Overrides:
toString in class Pair


Stanford NLP Group