VariableValue
The value assigned to a feature variation. This structure must contain exactly one field. It can be boolValue
, doubleValue
, longValue
, or stringValue
.
Inheritors
Types
If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
If this feature uses the double integer variation type, this field contains the double integer value of this variation.
If this feature uses the long variation type, this field contains the long value of this variation.
If this feature uses the string variation type, this field contains the string value of this variation.
Functions
Casts this VariableValue as a BoolValue and retrieves its kotlin.Boolean value. Throws an exception if the VariableValue is not a BoolValue.
Casts this VariableValue as a BoolValue and retrieves its kotlin.Boolean value. Returns null if the VariableValue is not a BoolValue.
Casts this VariableValue as a DoubleValue and retrieves its kotlin.Double value. Throws an exception if the VariableValue is not a DoubleValue.
Casts this VariableValue as a DoubleValue and retrieves its kotlin.Double value. Returns null if the VariableValue is not a DoubleValue.
Casts this VariableValue as a LongValue and retrieves its kotlin.Long value. Throws an exception if the VariableValue is not a LongValue.
Casts this VariableValue as a LongValue and retrieves its kotlin.Long value. Returns null if the VariableValue is not a LongValue.
Casts this VariableValue as a StringValue and retrieves its kotlin.String value. Throws an exception if the VariableValue is not a StringValue.
Casts this VariableValue as a StringValue and retrieves its kotlin.String value. Returns null if the VariableValue is not a StringValue.