Class Match<T extends Matchable>


  • public class Match<T extends Matchable>
    extends Object

    A generic class to hold the match between 2 objects and the score of the match result. A match between similar Token, Element or Document is represented by this class.

    The "data" and "matchedWith" object holds the 2 records that matched. And "score" represents the match for these 2 objects. "childScore" is used by ScoringFunction to aggregate and calculate the "score" value

    • Constructor Detail

      • Match

        public Match​(T t,
                     T matchedWith)
      • Match

        public Match​(T t,
                     T matchedWith,
                     List<Score> childScores)
      • Match

        public Match​(T t,
                     T matchedWith,
                     double result)
    • Method Detail

      • getData

        public T getData()
      • getMatchedWith

        public T getMatchedWith()
      • getResult

        public double getResult()
      • getScore

        public Score getScore()
      • setScore

        public void setScore​(List<Score> childScores)
      • getWeight

        public double getWeight()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object