Value

sealed class Value<out V>(source)

Represents a sealed class Value that can hold different types of values.

The sealed class Value has the following subclasses:

  • StringValue for storing a String value.

  • LongValue for storing a Long value.

  • DoubleValue for storing a Double value.

  • BooleanValue for storing a Boolean value.

  • DateValue for storing a LocalDate value.

  • TimeValue for storing a LocalTime value.

  • DateTimeValue for storing a LocalDateTime value.

  • MonthDayValue for storing a MonthDay value.

  • YearValue for storing an Int value.

  • UtcDateTimeValue for storing an Instant value.

Each subclass extends the Value class and overrides the value property with the respective type.

Parameters

V

the type of the value stored by the class

Inheritors

Types

Link copied to clipboard
data class BooleanValue(val value: Boolean) : Filter.Value<Boolean>
Link copied to clipboard
Link copied to clipboard
data class DateValue(val value: LocalDate) : Filter.Value<LocalDate>
Link copied to clipboard
data class DoubleValue(val value: Double) : Filter.Value<Double>
Link copied to clipboard
data class LongValue(val value: Long) : Filter.Value<Long>
Link copied to clipboard
data class MonthDayValue(val value: MonthDay) : Filter.Value<MonthDay>
Link copied to clipboard
data class StringValue(val value: String) : Filter.Value<String>
Link copied to clipboard
data class TimeValue(val value: LocalTime) : Filter.Value<LocalTime>
Link copied to clipboard
data class UtcDateTimeValue(val value: Instant) : Filter.Value<Instant>
Link copied to clipboard
data class YearValue(val value: Int) : Filter.Value<Int>

Properties

Link copied to clipboard
abstract val value: V

the value stored by the class