Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

@FunctionalInterface

public interface IntPredicate

A test of one int; the int form of Predicate.

Methods

public abstract boolean test(int value)Whether value passes.
public default IntPredicate and(IntPredicate other)Passes when this and other both pass; other is not asked when this fails.
public default IntPredicate negate()Passes when this fails.
public default IntPredicate or(IntPredicate other)Passes when this or other passes; other is not asked when this passes.

Method details

test

public abstract boolean test(int value)
Whether value passes.

Parameters

value int
the input

Returns

true when it passes

and

public default IntPredicate and(IntPredicate other)
Passes when this and other both pass; other is not asked when this fails.

Parameters

other IntPredicate
the second test

Returns

the composed test

negate

public default IntPredicate negate()
Passes when this fails.

Returns

the negated test

or

public default IntPredicate or(IntPredicate other)
Passes when this or other passes; other is not asked when this passes.

Parameters

other IntPredicate
the second test

Returns

the composed test