org.quartz.impl.matchers
Class NotMatcher<T extends Key>

java.lang.Object
  extended by org.quartz.impl.matchers.NotMatcher<T>
All Implemented Interfaces:
java.io.Serializable, Matcher<T>

public class NotMatcher<T extends Key>
extends java.lang.Object
implements Matcher<T>

Matches using an NOT operator on another Matcher.

Author:
jhouse
See Also:
Serialized Form

Field Summary
protected  Matcher<T> operand
           
 
Constructor Summary
protected NotMatcher(Matcher<T> operand)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Matcher<T> getOperand()
           
 int hashCode()
           
 boolean isMatch(T key)
           
static
<U extends Key>
NotMatcher<U>
not(Matcher<U> operand)
          Create a NotMatcher that reverses the result of the given matcher.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operand

protected Matcher<T extends Key> operand
Constructor Detail

NotMatcher

protected NotMatcher(Matcher<T> operand)
Method Detail

not

public static <U extends Key> NotMatcher<U> not(Matcher<U> operand)
Create a NotMatcher that reverses the result of the given matcher.


isMatch

public boolean isMatch(T key)
Specified by:
isMatch in interface Matcher<T extends Key>

getOperand

public Matcher<T> getOperand()

hashCode

public int hashCode()
Specified by:
hashCode in interface Matcher<T extends Key>
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface Matcher<T extends Key>
Overrides:
equals in class java.lang.Object


Copyright 2001-2019, Terracotta, Inc.