Sdílet prostřednictvím


Predicate.Not(IPredicate) Method

Definition

Caution

Use 'Java.Util.Functions.IPredicate.Not'. This class will be removed in a future release.

Returns a predicate that is the negation of the supplied predicate.

[Android.Runtime.Register("not", "(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
[System.Obsolete("Use 'Java.Util.Functions.IPredicate.Not'. This class will be removed in a future release.")]
public static Java.Util.Functions.IPredicate? Not (Java.Util.Functions.IPredicate? target);
[<Android.Runtime.Register("not", "(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
[<System.Obsolete("Use 'Java.Util.Functions.IPredicate.Not'. This class will be removed in a future release.")>]
static member Not : Java.Util.Functions.IPredicate -> Java.Util.Functions.IPredicate

Parameters

target
IPredicate

predicate to negate

Returns

a predicate that negates the results of the supplied predicate

Attributes

Remarks

Returns a predicate that is the negation of the supplied predicate. This is accomplished by returning result of the calling target.negate().

Added in 11.

Java documentation for java.util.function.Predicate.not(java.util.function.Predicate<? super T>).

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