Builder

interface Builder : KthBuilder

Builder interface for KthContext.

A context builder can be used with the KthContext method.

Functions

Link copied to clipboard
abstract fun build(): KthContext

Builds the context.

Link copied to clipboard
abstract fun disableCache()

Disables the cache.

Link copied to clipboard
abstract fun include(vararg modules: KthModule)
abstract fun include(modules: Iterable<KthModule>)

Includes modules to this context or module.

Link copied to clipboard
abstract fun with(vararg elements: KthElement)
abstract fun with(elements: Iterable<KthElement>)

Includes elements to this context or module.

Link copied to clipboard
abstract fun withCombinerOperator(operator: KthOperator)

Sets the combiner operator of this context or module.

Link copied to clipboard

Helper function to add the Operators.POWER operator to a KthContext builder.