Builder

class Builder : Taggable.Builder<TypeAliasSpec.Builder>

Functions

addAnnotation
Link copied to clipboard
fun addAnnotation(annotationSpec: AnnotationSpec): TypeAliasSpec.Builder
fun addAnnotation(annotation: ClassName): TypeAliasSpec.Builder
fun addAnnotation(annotation: Class<*>): TypeAliasSpec.Builder
fun addAnnotation(annotation: KClass<*>): TypeAliasSpec.Builder
addAnnotations
Link copied to clipboard
fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): TypeAliasSpec.Builder
addKdoc
Link copied to clipboard
fun addKdoc(block: CodeBlock): TypeAliasSpec.Builder
fun addKdoc(format: String, vararg args: Any): TypeAliasSpec.Builder
addModifiers
Link copied to clipboard
fun addModifiers(vararg modifiers: KModifier): TypeAliasSpec.Builder
fun addModifiers(modifiers: Iterable<KModifier>): 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
open fun tag(type: Class<*>, tag: Any?): TypeAliasSpec.Builder
Attaches tag to the request using type as a key.
open fun tag(type: KClass<*>, tag: Any?): TypeAliasSpec.Builder
Attaches tag to the request using type as a key.
toString
Link copied to clipboard
open fun toString(): String

Properties

annotations
Link copied to clipboard
val annotations: MutableList<AnnotationSpec>
modifiers
Link copied to clipboard
val modifiers: MutableSet<KModifier>
tags
Link copied to clipboard
open override val tags: MutableMap<KClass<*>, Any>
Mutable map of the current tags this builder contains.
typeVariables
Link copied to clipboard
val typeVariables: MutableSet<TypeVariableName>

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.