Builder

class Builder : Taggable.Builder<ParameterSpec.Builder>

Functions

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
Link copied to clipboard
fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): ParameterSpec.Builder
Link copied to clipboard
fun addKdoc(block: CodeBlock): ParameterSpec.Builder
fun addKdoc(format: String, vararg args: Any): ParameterSpec.Builder
Link copied to clipboard
fun addModifiers(vararg modifiers: KModifier): ParameterSpec.Builder
fun addModifiers(modifiers: Iterable<KModifier>): ParameterSpec.Builder
Link copied to clipboard
fun build(): ParameterSpec
Link copied to clipboard
fun defaultValue(codeBlock: CodeBlock?): ParameterSpec.Builder
fun defaultValue(format: String, vararg args: Any?): ParameterSpec.Builder
Link copied to clipboard
open fun tag(type: Class<*>, tag: Any?): ParameterSpec.Builder
open fun tag(type: KClass<*>, tag: Any?): ParameterSpec.Builder

Attaches tag to the request using type as a key. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for type.

Properties

Link copied to clipboard
val annotations: MutableList<AnnotationSpec>
Link copied to clipboard
val kdoc: CodeBlock.Builder
Link copied to clipboard
val modifiers: MutableList<KModifier>
Link copied to clipboard
open override val tags: MutableMap<KClass<*>, Any>

Mutable map of the current tags this builder contains.

Extensions

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. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for T.