SparseArray.ContentHashCode 方法

定义

返回此 SparseArray内容的哈希代码值,并 Objects#hashCode(Object) 结合其所有键和值的结果。

[Android.Runtime.Register("contentHashCode", "()I", "GetContentHashCodeHandler", ApiSince=31)]
public virtual int ContentHashCode();
[<Android.Runtime.Register("contentHashCode", "()I", "GetContentHashCodeHandler", ApiSince=31)>]
abstract member ContentHashCode : unit -> int
override this.ContentHashCode : unit -> int

返回

属性

注解

返回此 SparseArray内容的哈希代码值,并 Objects#hashCode(Object) 结合其所有键和值的结果。

对于向后兼容性, Object#hashCode() 无法实现,因此这可用作手动调用的替代方法。

Java文档android.util.SparseArray.contentHashCode()

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

适用于