Entry

class Entry(val key: String, val value: String?, val origin: String, val sourceKey: String? = null)(source)

One field. key is the field's key in dot.notation (api.port), or its @Key as written, the same for every entry whichever source supplied it. origin is the source that supplied it (#2 TomlSource(config.toml), numbered in priority order), DEFAULT or MISSING. sourceKey is the key that source was asked for when it differs from key, such as API_PORT in environment variables. value is the raw text, *** for secrets, or null when missing. A plain class rather than a data class, so fields can be added later; entries still compare by value.

Constructors

Link copied to clipboard
constructor(key: String, value: String?, origin: String, sourceKey: String? = null)

Properties

Link copied to clipboard
val key: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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