Builder

class Builder : Taggable.Builder<FileMemberSpec.Builder>

Functions

addDoc
Link copied to clipboard
fun addDoc(block: CodeBlock): FileMemberSpec.Builder
fun addDoc(format: String, vararg args: Any): FileMemberSpec.Builder
addGuard
Link copied to clipboard
fun addGuard(test: CodeBlock): FileMemberSpec.Builder
fun addGuard(format: String, vararg args: Any): FileMemberSpec.Builder
build
Link copied to clipboard
fun build(): FileMemberSpec
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?): FileMemberSpec.Builder
Attaches tag to the request using type as a key.
fun <T : Any> tag(type: KClass<T>, tag: T?): FileMemberSpec.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> FileMemberSpec.Builder.tag(tag: T?): FileMemberSpec.Builder
Attaches tag to the request using T as a key.