Top Description Methods
io.smallrye.common.function

public Interface ObjIntPredicate<T>

Type Parameters
<T>
the first argument type
Imports
java.util.Objects

A predicate that operates on an object and an integer.

Method Summary

Modifier and TypeMethod and Description
public default ObjIntPredicate<T>

Returns:

a predicate which is true only when this and the given predicate return true
and
(ObjIntPredicate<? super T>
the other predicate (must not be null)
other
)

Returns a predicate which is true only when this and the given predicate return true.

public default ObjIntPredicate<T>

Returns:

a predicate which is true when this predicate is false, and vice-versa
negate
()

Returns a predicate which is true when this predicate is false, and vice-versa.

public default ObjIntPredicate<T>

Returns:

a predicate which is true when either this or the given predicate return true
or
(ObjIntPredicate<? super T>
the other predicate (must not be null)
other
)

Returns a predicate which is true when either this or the given predicate return true.

public boolean

Returns:

true if the predicate passes, false otherwise
test
(T
the first argument
object
,
int
the second argument
value
)

Evaluate this predicate on the given arguments.

Method Detail

andback to summary
public default ObjIntPredicate<T> and(ObjIntPredicate<? super T> other)

Returns a predicate which is true only when this and the given predicate return true.

Parameters
other:ObjIntPredicate<? super T>

the other predicate (must not be null)

Returns:ObjIntPredicate<T>

a predicate which is true only when this and the given predicate return true

negateback to summary
public default ObjIntPredicate<T> negate()

Returns a predicate which is true when this predicate is false, and vice-versa.

Returns:ObjIntPredicate<T>

a predicate which is true when this predicate is false, and vice-versa

orback to summary
public default ObjIntPredicate<T> or(ObjIntPredicate<? super T> other)

Returns a predicate which is true when either this or the given predicate return true.

Parameters
other:ObjIntPredicate<? super T>

the other predicate (must not be null)

Returns:ObjIntPredicate<T>

a predicate which is true when either this or the given predicate return true

testback to summary
public boolean test(T object, int value)

Evaluate this predicate on the given arguments.

Parameters
object:T

the first argument

value:int

the second argument

Returns:boolean

true if the predicate passes, false otherwise