Known

class Known<T : Enum<T>>(val value: T) : EnumValue<T> (source)

An enum value that this code knows.

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
open override val stringValue: String

The Enum.name of Known.value, or the string the server sent in the case of Unknown.

Link copied to clipboard
open override val value: T

Known.value in the case of Known, or null in the case of Unknown.

Functions

Link copied to clipboard
fun copy(value: T = this.value): EnumValue.Known<T>

A copy with the given value replaced.

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