Taggable

interface Taggable

A type that can be tagged with extra metadata of the user's choice.

Types

Builder
Link copied to clipboard
interface Builder<out T : Taggable.Builder<T>>
The builder analogue to Taggable types.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
tag
Link copied to clipboard
open fun <T : Any> tag(type: Class<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
abstract 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.
toString
Link copied to clipboard
open fun toString(): String

Properties

tags
Link copied to clipboard
open val tags: Map<KClass<*>, Any>
Returns all tags.

Inheritors

AnnotationSpec
Link copied to clipboard
FileSpec
Link copied to clipboard
FunSpec
Link copied to clipboard
ParameterSpec
Link copied to clipboard
PropertySpec
Link copied to clipboard
TypeAliasSpec
Link copied to clipboard
TypeName
Link copied to clipboard
TypeSpec
Link copied to clipboard

Extensions

tag
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.