Class AuthorMatch<BA,EA>

java.lang.Object
eu.openaire.common.author.AuthorMatch<BA,EA>
Type Parameters:
BA - The type representing the base author. This class contains relevant data about an author whose identity needs to be matched with potential candidates.
EA - The type representing the enriching author. This class contains relevant data about author who is potential match for the base author.

public class AuthorMatch<BA,EA> extends Object
A class representing the successful match between a base author and an enriching author.

This class is designed to facilitate the comparison and potential matching of a base author (UA) with one of many enriching authors (CA). It provides a structured way to store and process author matching data.

  • Constructor Details

    • AuthorMatch

      public AuthorMatch(BA baseAuthor, EA enrichingAuthor, String stepName, double confidence)
      Constructs an AuthorMatch object with specified base author, enriching author, step name, and confidence score.
      Parameters:
      baseAuthor - The base author
      enrichingAuthor - The enriching author
      stepName - The step in which this match occurred
      confidence - The confidence score of the match
  • Method Details

    • withStepName

      public AuthorMatch<BA,EA> withStepName(String stepName)
      Creates a new AuthorMatch instance with a modified step name.
      Parameters:
      stepName - The new step name
      Returns:
      A new AuthorMatch instance with the updated step name
    • of

      public static <UA, CA> AuthorMatch<UA,CA> of(UA baseAuthor, CA enrichingAuthor, double confidence)
    • getBaseAuthor

      public BA getBaseAuthor()
      Gets the base author.
      Returns:
      The base author
    • setBaseAuthor

      public void setBaseAuthor(BA baseAuthor)
    • getEnrichingAuthor

      public EA getEnrichingAuthor()
      Gets the enriching author.
      Returns:
      The enriching author
    • setEnrichingAuthor

      public void setEnrichingAuthor(EA enrichingAuthor)
    • getStepName

      public String getStepName()
      Gets the step name of the match.
      Returns:
      The step name
    • setStepName

      public void setStepName(String stepName)
    • getConfidence

      public double getConfidence()
      Gets the confidence score of the match.
      Returns:
      The confidence score
    • setConfidence

      public void setConfidence(double confidence)
    • toString

      public String toString()
      Returns a string representation of the AuthorMatch object.
      Overrides:
      toString in class Object
      Returns:
      A string describing the object