Builder

interface Builder<out T : Taggable.Builder<T>>

The builder analogue to Taggable types.

Functions

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

Attaches tag to the request using type as a key. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for type.

Properties

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

Mutable map of the current tags this builder contains.

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
TypeSpec
Link copied to clipboard