public class OrMatcher<T extends Key<?>> extends Object implements Matcher<T>
Modifier and Type | Field and Description |
---|---|
protected Matcher<T> |
leftOperand |
protected Matcher<T> |
rightOperand |
Modifier | Constructor and Description |
---|---|
protected |
OrMatcher(Matcher<T> leftOperand,
Matcher<T> rightOperand) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Matcher<T> |
getLeftOperand() |
Matcher<T> |
getRightOperand() |
int |
hashCode() |
boolean |
isMatch(T key) |
static <U extends Key<?>> |
or(Matcher<U> leftOperand,
Matcher<U> rightOperand)
Create an OrMatcher that depends upon the result of at least one of the given matchers.
|
Copyright 2001-2019, Terracotta, Inc.