SparseArray.ContentHashCode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個雜湊碼值,將 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()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。