Builder

class Builder : Taggable.Builder<ParameterSpec.Builder>

Functions

addModifiers
Link copied to clipboard
fun addModifiers(vararg modifiers: Modifier): ParameterSpec.Builder
fun addModifiers(modifiers: Iterable<Modifier>): 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
tag
Link copied to clipboard
fun <T : Any> tag(type: Class<T>, tag: T?): ParameterSpec.Builder
Attaches tag to the request using type as a key.
fun <T : Any> tag(type: KClass<T>, tag: T?): ParameterSpec.Builder
Attaches tag to the request using type as a key.
toString
Link copied to clipboard
open fun toString(): String
variadic
Link copied to clipboard
fun variadic(value: Boolean): ParameterSpec.Builder

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> ParameterSpec.Builder.tag(tag: T?): ParameterSpec.Builder
Attaches tag to the request using T as a key.