AnnotationValue

sealed class AnnotationValue

Value of a segment annotation. Has one of three value types: Number, Boolean, or String.

Inheritors

Types

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

Value for a Boolean annotation.

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

Value for a Number annotation.

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

Value for a String annotation.

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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