Top Description Methods
io.smallrye.common.function

public Interface ExceptionObjIntPredicate<T, E extends Exception>

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

A predicate that operates on an object and an integer.

Method Summary

Modifier and TypeMethod and Description
public default ExceptionObjIntPredicate<T, E>

Returns:

a predicate which is true only when this and the given predicate return true
and
(ExceptionObjIntPredicate<? super T, ? extends E>
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 ExceptionObjIntPredicate<T, E>

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 ExceptionObjIntPredicate<T, E>

Returns:

a predicate which is true when either this or the given predicate return true
or
(ExceptionObjIntPredicate<? super T, ? extends E>
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 ExceptionObjIntPredicate<T, E> and(ExceptionObjIntPredicate<? super T, ? extends E> other)

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

Parameters
other:ExceptionObjIntPredicate<? super T, ? extends E>

the other predicate (must not be null)

Returns:ExceptionObjIntPredicate<T, E>

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

negateback to summary
public default ExceptionObjIntPredicate<T, E> negate()

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

Returns:ExceptionObjIntPredicate<T, E>

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

orback to summary
public default ExceptionObjIntPredicate<T, E> or(ExceptionObjIntPredicate<? super T, ? extends E> other)

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

Parameters
other:ExceptionObjIntPredicate<? super T, ? extends E>

the other predicate (must not be null)

Returns:ExceptionObjIntPredicate<T, E>

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

testback to summary
public boolean test(T object, int value) throws ExceptionPredicate:E

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

Exceptions
ExceptionPredicate:E:
if an exception occurs