Builder

class Builder : Taggable.Builder<AnnotationSpec.Builder>

Types

Companion
Link copied to clipboard
object Companion

Functions

addMember
Link copied to clipboard
fun addMember(codeBlock: CodeBlock): AnnotationSpec.Builder
fun addMember(format: String, vararg args: Any): AnnotationSpec.Builder
build
Link copied to clipboard
fun build(): AnnotationSpec
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?): AnnotationSpec.Builder
Attaches tag to the request using type as a key.
open fun tag(type: KClass<*>, tag: Any?): AnnotationSpec.Builder
Attaches tag to the request using type as a key.
toString
Link copied to clipboard
open fun toString(): String
useSiteTarget
Link copied to clipboard
fun useSiteTarget(useSiteTarget: AnnotationSpec.UseSiteTarget?): AnnotationSpec.Builder

Properties

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

Extensions

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