@MustImplementEqualsAndHashcode
public interface IMatcher<T extends Key<T>>
IScheduler API methods to select the
entities that should be operated upon.| Modifier and Type | Method and Description |
|---|---|
default AndMatcher<T> |
and(IMatcher<T> rightOperand) |
static <U extends Key<U>> |
and(IMatcher<U> leftOperand,
IMatcher<U> rightOperand)
Create an AndMatcher that depends upon the result of both of the given
matchers.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isMatch(T key) |
default NotMatcher<T> |
not() |
static <U extends Key<U>> |
not(IMatcher<U> operand)
Create a NotMatcher that reverses the result of the given matcher.
|
default OrMatcher<T> |
or(IMatcher<T> rightOperand) |
static <U extends Key<U>> |
or(IMatcher<U> leftOperand,
IMatcher<U> rightOperand)
Create an OrMatcher that depends upon the result of at least one of the
given matchers.
|
boolean isMatch(T key)
@Nonnull static <U extends Key<U>> AndMatcher<U> and(@Nonnull IMatcher<U> leftOperand, @Nonnull IMatcher<U> rightOperand)
@Nonnull static <U extends Key<U>> OrMatcher<U> or(@Nonnull IMatcher<U> leftOperand, @Nonnull IMatcher<U> rightOperand)
@Nonnull static <U extends Key<U>> NotMatcher<U> not(@Nonnull IMatcher<U> operand)
@Nonnull default NotMatcher<T> not()
Copyright © 2016–2021 Philip Helger. All rights reserved.