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 DoublePredicate

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

Methods

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

Method details

test

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

Parameters

value double
the input

Returns

true when it passes

and

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

Parameters

other DoublePredicate
the second test

Returns

the composed test

negate

public default DoublePredicate negate()
Passes when this fails.

Returns

the negated test

or

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

Parameters

other DoublePredicate
the second test

Returns

the composed test