All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.epam.eco.kafkamanager.ClausesWithHandler Maven / Gradle / Ivy

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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy