Builder

class Builder : Taggable.Builder<TypeAliasSpec.Builder>

Functions

addAttribute
Link copied to clipboard
fun addAttribute(attribute: AttributeSpec): TypeAliasSpec.Builder
fun addAttribute(name: String, vararg arguments: String): TypeAliasSpec.Builder
addDoc
Link copied to clipboard
fun addDoc(block: CodeBlock): TypeAliasSpec.Builder
fun addDoc(format: String, vararg args: Any): TypeAliasSpec.Builder
addModifiers
Link copied to clipboard
fun addModifiers(vararg modifiers: Modifier): TypeAliasSpec.Builder
addTypeVariable
Link copied to clipboard
fun addTypeVariable(typeVariable: TypeVariableName): TypeAliasSpec.Builder
addTypeVariables
Link copied to clipboard
fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): TypeAliasSpec.Builder
build
Link copied to clipboard
fun build(): TypeAliasSpec
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
fun <T : Any> tag(type: Class<T>, tag: T?): TypeAliasSpec.Builder
Attaches tag to the request using type as a key.
fun <T : Any> tag(type: KClass<T>, tag: T?): TypeAliasSpec.Builder
Attaches tag to the request using type as a key.
toString
Link copied to clipboard
open fun toString(): String

Properties

tags
Link copied to clipboard
val tags: MutableMap<KClass<*>, Any>
Mutable map of the current tags this builder contains.

Extensions

tag
Link copied to clipboard
inline fun <T : Any> TypeAliasSpec.Builder.tag(tag: T?): TypeAliasSpec.Builder
Attaches tag to the request using T as a key.