Class AuthorMatcherStep.Builder<BA,EA>
java.lang.Object
eu.openaire.common.author.AuthorMatcherStep.Builder<BA,EA>
- Type Parameters:
BA- The type of the base author.EA- The type of the enriching author.
- Enclosing class:
AuthorMatcherStep<BA,EA>
Builder class for constructing an
AuthorMatcherStep.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds anAuthorMatcherStepinstance.exclusionPredicate(java.util.function.Predicate<List<AuthorMatch<BA, EA>>> exclusionPredicate) Sets the exclusion predicate for this builder.matchingFunc(java.util.function.BiFunction<BA, EA, Optional<AuthorMatch<BA, EA>>> matchingFunc) Sets the matching function for this builder.Sets the name for this matching step.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
matchingFunc
public AuthorMatcherStep.Builder<BA,EA> matchingFunc(java.util.function.BiFunction<BA, EA, Optional<AuthorMatch<BA, EA>>> matchingFunc) Sets the matching function for this builder.- Parameters:
matchingFunc- The matching function to use.- Returns:
- This builder instance.
-
exclusionPredicate
public AuthorMatcherStep.Builder<BA,EA> exclusionPredicate(java.util.function.Predicate<List<AuthorMatch<BA, EA>>> exclusionPredicate) Sets the exclusion predicate for this builder.- Parameters:
exclusionPredicate- The exclusion predicate to use.- Returns:
- This builder instance.
-
name
Sets the name for this matching step.- Parameters:
name- The name of the matching step.- Returns:
- This builder instance.
-
build
Builds anAuthorMatcherStepinstance.- Returns:
- A new instance of
AuthorMatcherStep.
-