Package io.split.engine.matchers
Class CombiningMatcher
- java.lang.Object
-
- io.split.engine.matchers.CombiningMatcher
-
public class CombiningMatcher extends Object
Combines the results of multiple matchers using the logical OR or AND.- Author:
- adil
-
-
Constructor Summary
Constructors Constructor Description CombiningMatcher(MatcherCombiner combiner, List<AttributeMatcher> delegates)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<AttributeMatcher>attributeMatchers()booleanequals(Object obj)inthashCode()booleanmatch(String key, String bucketingKey, Map<String,Object> attributes, SplitClientImpl splitClient)static CombiningMatcherof(Matcher matcher)static CombiningMatcherof(String attribute, Matcher matcher)StringtoString()
-
-
-
Constructor Detail
-
CombiningMatcher
public CombiningMatcher(MatcherCombiner combiner, List<AttributeMatcher> delegates)
-
-
Method Detail
-
of
public static CombiningMatcher of(Matcher matcher)
-
of
public static CombiningMatcher of(String attribute, Matcher matcher)
-
match
public boolean match(String key, String bucketingKey, Map<String,Object> attributes, SplitClientImpl splitClient)
-
attributeMatchers
public com.google.common.collect.ImmutableList<AttributeMatcher> attributeMatchers()
-
-