- Type Parameters:
T- the first argument type
public interface ObjIntPredicate<T>
A predicate that operates on an object and an integer.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ObjIntPredicate<T> and(ObjIntPredicate<? super T> other) Returns a predicate which istrueonly when this and the given predicate returntrue.default ObjIntPredicate<T> negate()Returns a predicate which istruewhen this predicate isfalse, and vice-versa.default ObjIntPredicate<T> or(ObjIntPredicate<? super T> other) Returns a predicate which istruewhen either this or the given predicate returntrue.booleanEvaluate this predicate on the given arguments.
-
Method Details
-
test
Evaluate this predicate on the given arguments.- Parameters:
object- the first argumentvalue- the second argument- Returns:
trueif the predicate passes,falseotherwise
-
and
Returns a predicate which istrueonly when this and the given predicate returntrue.- Parameters:
other- the other predicate (must not benull)- Returns:
- a predicate which is
trueonly when this and the given predicate returntrue
-
negate
Returns a predicate which istruewhen this predicate isfalse, and vice-versa.- Returns:
- a predicate which is
truewhen this predicate isfalse, and vice-versa
-
or
Returns a predicate which istruewhen either this or the given predicate returntrue.- Parameters:
other- the other predicate (must not benull)- Returns:
- a predicate which is
truewhen either this or the given predicate returntrue
-