透過集合功能整理內容
你可以依據偏好儲存及分類內容。
封鎖 >序列化 >ISerializer
serialization.ISerializer 介面
將外掛程式或系統序列化與反序列化。
Signature:
export interface ISerializer
屬性
屬性 |
修飾符 |
類型 |
說明 |
priority |
|
數字 |
用來決定還原狀態順序的優先順序值。優先順序較高的優先順序會反序列化,而排序較低的優先順序之前。例如,如果您有優先順序 (0、-10、10、100),則反序列化的順序會是 (100、10、0、-10)。如果兩個序列化程式的優先順序相同,則它們會以相對順序進行反序列化程序。 |
方法
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The `ISerializer` interface handles the serialization and deserialization of a plugin or system's state. It defines three core methods: `save`, which saves the state; `load`, which loads the state; and `clear`, which resets the state. It also includes a `priority` property, a numerical value determining the order in which states are deserialized, with higher positive values being processed first. Equal priorities result in arbitrary order.\n"]]