Builder

class Builder : Taggable.Builder<ParameterSpec.Builder>

Functions

addAnnotation
Link copied to clipboard
fun addAnnotation(annotationSpec: AnnotationSpec): ParameterSpec.Builder
fun addAnnotation(annotation: ClassName): ParameterSpec.Builder
fun addAnnotation(annotation: Class<*>): ParameterSpec.Builder
fun addAnnotation(annotation: KClass<*>): ParameterSpec.Builder
addAnnotations
Link copied to clipboard
fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): ParameterSpec.Builder
addKdoc
Link copied to clipboard
fun addKdoc(block: CodeBlock): ParameterSpec.Builder
fun addKdoc(format: String, vararg args: Any): ParameterSpec.Builder
addModifiers
Link copied to clipboard
fun addModifiers(vararg modifiers: KModifier): ParameterSpec.Builder
fun addModifiers(modifiers: Iterable<KModifier>): ParameterSpec.Builder
build
Link copied to clipboard
fun build(): ParameterSpec
defaultValue
Link copied to clipboard
fun defaultValue(codeBlock: CodeBlock): ParameterSpec.Builder
fun defaultValue(format: String, vararg args: Any?): ParameterSpec.Builder
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
jvmModifiers
Link copied to clipboard
fun jvmModifiers(modifiers: Iterable<Modifier>): ParameterSpec.Builder
tag
Link copied to clipboard
open fun tag(type: Class<*>, tag: Any?): ParameterSpec.Builder
Attaches tag to the request using type as a key.
open fun tag(type: KClass<*>, tag: Any?): ParameterSpec.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>
kdoc
Link copied to clipboard
val kdoc: CodeBlock.Builder
modifiers
Link copied to clipboard
val modifiers: MutableList<KModifier>
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> ParameterSpec.Builder.tag(tag: T?): ParameterSpec.Builder
Attaches tag to the request using T as a key.