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
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
valuedouble- 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
otherDoublePredicate- 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
otherDoublePredicate- the second test
Returns
the composed test