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.
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 Summary
ConstructorsConstructorDescriptionAuthorMatch(BA baseAuthor, EA enrichingAuthor, String stepName, double confidence) Constructs an AuthorMatch object with specified base author, enriching author, step name, and confidence score. -
Method Summary
Modifier and TypeMethodDescriptionGets the base author.doubleGets the confidence score of the match.Gets the enriching author.Gets the step name of the match.static <UA,CA> AuthorMatch <UA, CA> of(UA baseAuthor, CA enrichingAuthor, double confidence) voidsetBaseAuthor(BA baseAuthor) voidsetConfidence(double confidence) voidsetEnrichingAuthor(EA enrichingAuthor) voidsetStepName(String stepName) toString()Returns a string representation of the AuthorMatch object.withStepName(String stepName) Creates a new AuthorMatch instance with a modified step name.
-
Constructor Details
-
AuthorMatch
Constructs an AuthorMatch object with specified base author, enriching author, step name, and confidence score.- Parameters:
baseAuthor- The base authorenrichingAuthor- The enriching authorstepName- The step in which this match occurredconfidence- The confidence score of the match
-
-
Method Details
-
withStepName
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
-
getBaseAuthor
-
setBaseAuthor
-
getEnrichingAuthor
-
setEnrichingAuthor
-
getStepName
-
setStepName
-
getConfidence
public double getConfidence()Gets the confidence score of the match.- Returns:
- The confidence score
-
setConfidence
public void setConfidence(double confidence) -
toString
-