DynamicConfigurationValue

open class DynamicConfigurationValue<T : Any>(val valueEntries: SortedSet<DynamicConfigurationValue.ValueEntry<T>>)

A representation of a configuration value of type T with update information. It contains a non-empty set of value entries valueEntries, sorted ascending by version.

Each entry represents a default value of type T that shall be applied from the given version with the given update strategy.

Constructors

Link copied to clipboard
fun <T : Any> DynamicConfigurationValue(valueEntries: SortedSet<DynamicConfigurationValue.ValueEntry<T>>)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class ValueEntry<T : Any>(    val fromVersion: Int,     val defaultValue: T,     val updateStrategy: ConfigurationUpdateStrategy) : Comparable<DynamicConfigurationValue.ValueEntry<T>>

Represents the defaultValue of type T that shall be applied from fromVersion with updateStrategy.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun entriesInVersionRange(fromVersion: Int, toVersion: Int): SortedSet<DynamicConfigurationValue.ValueEntry<T>>

Value entries from fromVersion to toVersion, inclusive.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Inheritors

Link copied to clipboard