org.quartz.impl.matchers
Class AndMatcher<T extends Key>
java.lang.Object
org.quartz.impl.matchers.AndMatcher<T>
- All Implemented Interfaces:
- Serializable, Matcher<T>
public class AndMatcher<T extends Key>
- extends Object
- implements Matcher<T>
Matches using an AND operator on two Matcher operands.
- Author:
- jhouse
- See Also:
- Serialized Form
and(Matcher<U> leftOperand,
Matcher<U> rightOperand)
Create an AndMatcher that depends upon the result of both of the given matchers. |
boolean |
equals(Object obj)
|
Matcher<T> |
getLeftOperand()
|
Matcher<T> |
getRightOperand()
|
int |
hashCode()
|
boolean |
isMatch(T key)
|
leftOperand
protected Matcher<T extends Key> leftOperand
rightOperand
protected Matcher<T extends Key> rightOperand
AndMatcher
protected AndMatcher(Matcher<T> leftOperand,
Matcher<T> rightOperand)
and
public static <U extends Key> AndMatcher<U> and(Matcher<U> leftOperand,
Matcher<U> rightOperand)
- Create an AndMatcher that depends upon the result of both of the given matchers.
isMatch
public boolean isMatch(T key)
- Specified by:
isMatch
in interface Matcher<T extends Key>
getLeftOperand
public Matcher<T> getLeftOperand()
getRightOperand
public Matcher<T> getRightOperand()
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Matcher<T extends Key>
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Matcher<T extends Key>
- Overrides:
equals
in class Object
Copyright 2001-2011,
Terracotta, Inc.