Package-level declarations

属性容器类型。

Types

Link copied to clipboard

一个属性。

Link copied to clipboard
interface AttributeMap

一个通过 Attribute 作为键值来界定其元素类型的映射表。

Link copied to clipboard

一个包含 AttributeMap 的容器。

Link copied to clipboard

MutableAttributeMap 是 AttributeMap 的子类型,代表一个允许变化的 AttributeMap。 类似于 Map 与 MutableMap 之间的关系。

Functions

Link copied to clipboard
inline fun <T : Any> attribute(name: String): Attribute<T>

构建一个 Attribute 实例。

Link copied to clipboard
fun attributeMapOf(source: Map<Attribute<*>, Any> = emptyMap()): AttributeMap

构建一个 AttributeMap。

Link copied to clipboard

Inherited functions

Link copied to clipboard
operator fun <T : Any> MutableAttributeMap.set(attribute: Attribute<T>, value: T)

set operator function for MutableAttributeMap。