Top Description Methods
io.smallrye.common.function

public Interface ObjLongPredicate<T>

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

A predicate that operates on an object and a long integer.

Method Summary

Modifier and TypeMethod and Description
public default ObjLongPredicate<T>

Returns:

a predicate which is true only when this and the given predicate return true
and
(ObjLongPredicate<? 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 ObjLongPredicate<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 ObjLongPredicate<T>

Returns:

a predicate which is true when either this or the given predicate return true
or
(ObjLongPredicate<? 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
,
long
the second argument
value
)

Evaluate this predicate on the given arguments.

Method Detail

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

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

Parameters
other:ObjLongPredicate<? super T>

the other predicate (must not be null)

Returns:ObjLongPredicate<T>

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

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

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

Returns:ObjLongPredicate<T>

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

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

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

Parameters
other:ObjLongPredicate<? super T>

the other predicate (must not be null)

Returns:ObjLongPredicate<T>

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

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

Evaluate this predicate on the given arguments.

Parameters
object:T

the first argument

value:long

the second argument

Returns:boolean

true if the predicate passes, false otherwise