AbstractOptions

abstract class AbstractOptions<T : AbstractOptions<T>>


Summary

Public functions

T
with(key: String, value: Boolean)

Specify generic Boolean option

T
with(key: String, value: Double)

Specify generic Double option

T
with(key: String, value: Field)

Specify generic Field option

T
with(key: String, value: Long)

Specify generic Long option

T
with(key: String, value: RawOptions)

Specify RawOptions object

T
with(key: String, value: String)

Specify generic String option

Protected functions

T
adding(newOptions: AbstractOptions<*>)
T
with(key: String, subSection: AbstractOptions<*>)
T
T
with(key: String, value: InternalOptions)
T
with(key: String, vararg values: String)

Public functions

with

fun with(key: String, value: Boolean): T

Specify generic Boolean option

Parameters
key: String

The option key

value: Boolean

The Boolean value of option

Returns
T

A new options object.

with

fun with(key: String, value: Double): T

Specify generic Double option

Parameters
key: String

The option key

value: Double

The Double value of option

Returns
T

A new options object.

with

fun with(key: String, value: Field): T

Specify generic Field option

Parameters
key: String

The option key

value: Field

The Field value of option

Returns
T

A new options object.

with

fun with(key: String, value: Long): T

Specify generic Long option

Parameters
key: String

The option key

value: Long

The Long value of option

Returns
T

A new options object.

with

fun with(key: String, value: RawOptions): T

Specify RawOptions object

Parameters
key: String

The option key

value: RawOptions

The RawOptions object

Returns
T

A new options object.

with

fun with(key: String, value: String): T

Specify generic String option

Parameters
key: String

The option key

value: String

The String value of option

Returns
T

A new options object.

Protected functions

adding

protected fun adding(newOptions: AbstractOptions<*>): T

with

protected fun with(key: String, subSection: AbstractOptions<*>): T

with

protected fun with(key: String, value: <Error class: unknown class>): T

with

protected fun with(key: String, value: InternalOptions): T

with

protected fun with(key: String, vararg values: String): T