BA - The type containing the base author data.EA - The type containing the enriching author data.public class AuthorMatcherStep<BA,EA> extends Object implements Serializable
This class encapsulates a matching function, an exclusion predicate, and a name for the matching step. It allows defining different strategies for comparing authors, such as full name matching and abbreviation-based matching.
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthorMatcherStep.Builder<BA,EA>
Builder class for constructing an
AuthorMatcherStep. |
| Constructor and Description |
|---|
AuthorMatcherStep() |
| Modifier and Type | Method and Description |
|---|---|
static <BA,EA> AuthorMatcherStep.Builder<BA,EA> |
abbreviationsMatcher(java.util.function.Function<BA,String> ex1,
java.util.function.Function<EA,String> ex2)
Creates a builder for a matching step that compares names based on abbreviations.
|
java.util.function.Predicate<List<AuthorMatch<BA,EA>>> |
getExclusionPredicate()
Gets the exclusion predicate used in this step.
|
java.util.function.BiFunction<BA,EA,Optional<AuthorMatch<BA,EA>>> |
getMatchingFunc()
Gets the matching function used in this step.
|
String |
getName()
Gets the name of this matching step.
|
static <BA,EA> AuthorMatcherStep.Builder<BA,EA> |
stringIgnoreCaseMatcher(java.util.function.Function<BA,String> ex1,
java.util.function.Function<EA,String> ex2)
Creates a builder for a matching step that compares strings ignoring case.
|
public static <BA,EA> AuthorMatcherStep.Builder<BA,EA> stringIgnoreCaseMatcher(java.util.function.Function<BA,String> ex1, java.util.function.Function<EA,String> ex2)
BA - The type of the base author.EA - The type of the enriching author.ex1 - Function to extract the string from a base author.ex2 - Function to extract the string from an enriching author.public static <BA,EA> AuthorMatcherStep.Builder<BA,EA> abbreviationsMatcher(java.util.function.Function<BA,String> ex1, java.util.function.Function<EA,String> ex2)
BA - The type of the base author.EA - The type of the enriching author.ex1 - Function to extract the author name from a base author.ex2 - Function to extract the author name from an enriching author.public java.util.function.BiFunction<BA,EA,Optional<AuthorMatch<BA,EA>>> getMatchingFunc()
public java.util.function.Predicate<List<AuthorMatch<BA,EA>>> getExclusionPredicate()
public String getName()
Copyright © 2026. All Rights Reserved.