Builder

class Builder : Taggable.Builder<PropertySpec.Builder>

Functions

abstractGetter
Link copied to clipboard
fun abstractGetter(): PropertySpec.Builder
abstractSetter
Link copied to clipboard
fun abstractSetter(): PropertySpec.Builder
addAttribute
Link copied to clipboard
fun addAttribute(attribute: AttributeSpec): PropertySpec.Builder
fun addAttribute(name: String, vararg arguments: String): PropertySpec.Builder
addDoc
Link copied to clipboard
fun addDoc(block: CodeBlock): PropertySpec.Builder
fun addDoc(format: String, vararg args: Any): PropertySpec.Builder
addModifiers
Link copied to clipboard
fun addModifiers(vararg modifiers: Modifier): PropertySpec.Builder
build
Link copied to clipboard
fun build(): PropertySpec
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getter
Link copied to clipboard
fun getter(getter: FunctionSpec): PropertySpec.Builder
hashCode
Link copied to clipboard
open fun hashCode(): Int
initializer
Link copied to clipboard
fun initializer(codeBlock: CodeBlock): PropertySpec.Builder
fun initializer(format: String, vararg args: Any?): PropertySpec.Builder
mutable
Link copied to clipboard
fun mutable(mutable: Boolean): PropertySpec.Builder
setter
Link copied to clipboard
fun setter(setter: FunctionSpec): PropertySpec.Builder
tag
Link copied to clipboard
fun <T : Any> tag(type: Class<T>, tag: T?): PropertySpec.Builder
Attaches tag to the request using type as a key.
fun <T : Any> tag(type: KClass<T>, tag: T?): PropertySpec.Builder
Attaches tag to the request using type as a key.
toString
Link copied to clipboard
open fun toString(): String

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