Identifier

@Serializable(with = IdentifierSerializer::class)
data class Identifier(val namespace: String, val id: String) : Parcelable

用于注册使用的标识符

Since

APi 4

Constructors

Link copied to clipboard
constructor(namespace: String, id: String)

Properties

Link copied to clipboard
val id: String

标识符的名称

Link copied to clipboard

标识符的命名控件

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

判读相同

Link copied to clipboard
open override fun hashCode(): Int

生成HashCode

Link copied to clipboard
open override fun toString(): String

将对象变为文字标识符 格式为"

$namespace:$

id"