Predicate.IsEqual(Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Use 'Java.Util.Functions.IPredicate.IsEqual'. This class will be removed in a future release.
返回一个谓词,该谓词测试两个参数是否相 Objects#equals(Object, Object)
等。
[Android.Runtime.Register("isEqual", "(Ljava/lang/Object;)Ljava/util/function/Predicate;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
[System.Obsolete("Use 'Java.Util.Functions.IPredicate.IsEqual'. This class will be removed in a future release.")]
public static Java.Util.Functions.IPredicate? IsEqual (Java.Lang.Object? targetRef);
[<Android.Runtime.Register("isEqual", "(Ljava/lang/Object;)Ljava/util/function/Predicate;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
[<System.Obsolete("Use 'Java.Util.Functions.IPredicate.IsEqual'. This class will be removed in a future release.")>]
static member IsEqual : Java.Lang.Object -> Java.Util.Functions.IPredicate
参数
- targetRef
- Object
要与之进行比较的相等性的对象引用,可能为 null
返回
测试两个参数是否相等的谓词 Objects#equals(Object, Object)
- 属性
注解
返回一个谓词,该谓词测试两个参数是否相 Objects#equals(Object, Object)
等。
适用于 . 的 java.util.function.Predicate.isEqual(java.lang.Object)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。