DynamicConfigurationValue
open class DynamicConfigurationValue<T : Any>(val valueEntries: SortedSet<DynamicConfigurationValue.ValueEntry<T>>)
Content copied to clipboard
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>>)
Content copied to clipboard
Types
Link copied to clipboard
data class ValueEntry<T : Any>( val fromVersion: Int, val defaultValue: T, val updateStrategy: ConfigurationUpdateStrategy) : Comparable<DynamicConfigurationValue.ValueEntry<T>>
Content copied to clipboard
Represents the defaultValue of type T that shall be applied from fromVersion with updateStrategy.
Properties
Functions
Link copied to clipboard
fun entriesInVersionRange(fromVersion: Int, toVersion: Int): SortedSet<DynamicConfigurationValue.ValueEntry<T>>
Content copied to clipboard
Value entries from fromVersion to toVersion, inclusive.