Udostępnij za pośrednictwem


ILongPredicate.Or(ILongPredicate) Method

Definition

Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.

[Android.Runtime.Register("or", "(Ljava/util/function/LongPredicate;)Ljava/util/function/LongPredicate;", "GetOr_Ljava_util_function_LongPredicate_Handler:Java.Util.Functions.ILongPredicate, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public virtual Java.Util.Functions.ILongPredicate? Or (Java.Util.Functions.ILongPredicate? other);
[<Android.Runtime.Register("or", "(Ljava/util/function/LongPredicate;)Ljava/util/function/LongPredicate;", "GetOr_Ljava_util_function_LongPredicate_Handler:Java.Util.Functions.ILongPredicate, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member Or : Java.Util.Functions.ILongPredicate -> Java.Util.Functions.ILongPredicate
override this.Or : Java.Util.Functions.ILongPredicate -> Java.Util.Functions.ILongPredicate

Parameters

other
ILongPredicate

a predicate that will be logically-ORed with this predicate

Returns

a composed predicate that represents the short-circuiting logical OR of this predicate and the other predicate

Attributes

Remarks

Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate is true, then the other predicate is not evaluated.

Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.

Java documentation for java.util.function.LongPredicate.or(java.util.function.LongPredicate).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to