AttributeValue

sealed class AttributeValue

A value for a feature flag attribute. Only one of the members can be set.

Inheritors

Types

Link copied to clipboard
data class BooleanValue(val value: Boolean) : AttributeValue

A Boolean value for the attribute.

Link copied to clipboard
data class NumberArray(val value: List<Double>) : AttributeValue

An array of numeric values for the attribute.

Link copied to clipboard
data class NumberValue(val value: Double) : AttributeValue

A numeric value for the attribute.

Link copied to clipboard
Link copied to clipboard
data class StringArray(val value: List<String>) : AttributeValue

An array of string values for the attribute.

Link copied to clipboard
data class StringValue(val value: String) : AttributeValue

A string value for the attribute.

Functions

Link copied to clipboard

Casts this AttributeValue as a BooleanValue and retrieves its kotlin.Boolean value. Throws an exception if the AttributeValue is not a BooleanValue.

Link copied to clipboard

Casts this AttributeValue as a BooleanValue and retrieves its kotlin.Boolean value. Returns null if the AttributeValue is not a BooleanValue.

Link copied to clipboard

Casts this AttributeValue as a NumberArray and retrieves its kotlin.collections.List value. Throws an exception if the AttributeValue is not a NumberArray.

Link copied to clipboard

Casts this AttributeValue as a NumberArray and retrieves its kotlin.collections.List value. Returns null if the AttributeValue is not a NumberArray.

Link copied to clipboard

Casts this AttributeValue as a NumberValue and retrieves its kotlin.Double value. Throws an exception if the AttributeValue is not a NumberValue.

Link copied to clipboard

Casts this AttributeValue as a NumberValue and retrieves its kotlin.Double value. Returns null if the AttributeValue is not a NumberValue.

Link copied to clipboard

Casts this AttributeValue as a StringArray and retrieves its kotlin.collections.List value. Throws an exception if the AttributeValue is not a StringArray.

Link copied to clipboard

Casts this AttributeValue as a StringArray and retrieves its kotlin.collections.List value. Returns null if the AttributeValue is not a StringArray.

Link copied to clipboard

Casts this AttributeValue as a StringValue and retrieves its kotlin.String value. Throws an exception if the AttributeValue is not a StringValue.

Link copied to clipboard

Casts this AttributeValue as a StringValue and retrieves its kotlin.String value. Returns null if the AttributeValue is not a StringValue.