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 LongPredicate
Methods
public abstract boolean test(long value) | Whether value passes. |
public default LongPredicate and(LongPredicate other) | Passes when this and other both pass; other is not asked when this fails. |
public default LongPredicate negate() | Passes when this fails. |
public default LongPredicate or(LongPredicate other) | Passes when this or other passes; other is not asked when this passes. |
Method details
test
public abstract boolean test(long value)Whether
value passes.Parameters
valuelong- the input
Returns
true when it passes
and
public default LongPredicate and(LongPredicate other)Passes when this and
other both pass; other is not asked when this
fails.Parameters
otherLongPredicate- the second test
Returns
the composed test
negate
public default LongPredicate negate()Passes when this fails.
Returns
the negated test
or
public default LongPredicate or(LongPredicate other)Passes when this or
other passes; other is not asked when this
passes.Parameters
otherLongPredicate- the second test
Returns
the composed test