AttributedSpec

open class AttributedSpec(val attributes: List<AttributeSpec>, val tags: Map<KClass<*>, Any>) : Taggable

Constructors

Link copied to clipboard
fun AttributedSpec(attributes: List<AttributeSpec>, tags: Map<KClass<*>, Any>)

Types

Link copied to clipboard
abstract class Builder<out B : AttributedSpec.Builder<B>> : Taggable.Builder<B>

The builder analogue to AttributedSpec types.

Functions

Link copied to clipboard
inline fun <T : Any> tag(type: Class<T>): T?
inline fun <T : Any> tag(type: KClass<T>): T?

Returns the tag attached with type as a key, or null if no tag is attached with that key.

Properties

Link copied to clipboard
Link copied to clipboard
val tags: Map<KClass<*>, Any>

all tags.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
inline fun <T : Any> Taggable.tag(): T?

Returns the tag attached with T as a key, or null if no tag is attached with that key.