SectionOptionality

sealed class SectionOptionality<out T>

Provides information on whether a section is optional or not.

Inheritors

Types

Link copied to clipboard
data class Optional<out T>(val defaultValue: T) : SectionOptionality<T>

The section is optional. If absent, defaultValue is used instead.

Link copied to clipboard

The section is required. An exception will be thrown if it is absent from the configuration file.