Predicate.Not(IPredicate) 方法

定义

注意

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

返回一个谓词,该谓词是提供的谓词的求反。

[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

参数

target
IPredicate

要求反的谓词

返回

一个谓词,它否定提供的谓词的结果

属性

注解

返回一个谓词,该谓词是提供的谓词的求反。 这是通过返回调用 target.negate()结果来实现的。

已在 11 中添加。

Java文档java.util.function.Predicate.not(java.util.function.Predicate<? super T>)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于