Value
Represents a sealed class Value
that can hold different types of values.
The sealed class Value
has the following subclasses:
StringValue
for storing aString
value.LongValue
for storing aLong
value.DoubleValue
for storing aDouble
value.BooleanValue
for storing aBoolean
value.DateValue
for storing aLocalDate
value.TimeValue
for storing aLocalTime
value.DateTimeValue
for storing aLocalDateTime
value.MonthDayValue
for storing aMonthDay
value.YearValue
for storing anInt
value.UtcDateTimeValue
for storing anInstant
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