pl.allegro.tech.hermes.management.infrastructure.query.matcher.AndMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.management.infrastructure.query.matcher;
import java.util.Collection;
public class AndMatcher implements Matcher {
private Collection matchers;
public AndMatcher(Collection matchers) {
this.matchers = matchers;
}
@Override
public boolean match(Object value) {
return matchers.stream()
.reduce(
true,
(match, matcher) -> match && matcher.match(value),
(first, second) -> first && second);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy