com.epam.eco.kafkamanager.ClausesWithHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-manager-commons Show documentation
Show all versions of kafka-manager-commons Show documentation
Common models, utilities, etc
The newest version!
package com.epam.eco.kafkamanager;
import java.util.Set;
import java.util.function.BiPredicate;
import java.util.function.Function;
/**
* @author Mikhail_Vershkov
*/
record ClausesWithHandler(Set> clauses,
BiPredicate>, C> clausesHandler,
Function valueExtractor) {
boolean match(R obj) {
return clausesHandler().test(clauses(), valueExtractor().apply(obj));
}
}