public class JSR310Utils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ValueInterval |
durationToValue(java.time.Duration duration)
Converts a Duration to a Value.
|
static ValueTimestampTimeZone |
instantToValue(java.time.Instant instant)
Converts a Instant to a Value.
|
static ValueTimestamp |
localDateTimeToValue(java.time.LocalDateTime localDateTime)
Converts a LocalDateTime to a Value.
|
static ValueDate |
localDateToValue(java.time.LocalDate localDate)
Converts a LocalDate to a Value.
|
static ValueTime |
localTimeToValue(java.time.LocalTime localTime)
Converts a LocalTime to a Value.
|
static ValueTimestampTimeZone |
offsetDateTimeToValue(java.time.OffsetDateTime offsetDateTime)
Converts a OffsetDateTime to a Value.
|
static ValueTimeTimeZone |
offsetTimeToValue(java.time.OffsetTime offsetTime)
Converts a OffsetTime to a Value.
|
static ValueInterval |
periodToValue(java.time.Period period)
Converts a Period to a Value.
|
static java.time.Duration |
valueToDuration(Value value)
Converts a value to a Duration.
|
static java.time.Instant |
valueToInstant(Value value,
CastDataProvider provider)
Converts a value to a Instant.
|
static java.time.LocalDate |
valueToLocalDate(Value value,
CastDataProvider provider)
Converts a value to a LocalDate.
|
static java.time.LocalDateTime |
valueToLocalDateTime(Value value,
CastDataProvider provider)
Converts a value to a LocalDateTime.
|
static java.time.LocalTime |
valueToLocalTime(Value value,
CastDataProvider provider)
Converts a value to a LocalTime.
|
static java.time.OffsetDateTime |
valueToOffsetDateTime(Value value,
CastDataProvider provider)
Converts a value to a OffsetDateTime.
|
static java.time.OffsetTime |
valueToOffsetTime(Value value,
CastDataProvider provider)
Converts a value to a OffsetTime.
|
static java.time.Period |
valueToPeriod(Value value)
Converts a value to a Period.
|
static java.time.ZonedDateTime |
valueToZonedDateTime(Value value,
CastDataProvider provider)
Converts a value to a ZonedDateTime.
|
static ValueTimestampTimeZone |
zonedDateTimeToValue(java.time.ZonedDateTime zonedDateTime)
Converts a ZonedDateTime to a Value.
|
public static java.time.LocalDate valueToLocalDate(Value value, CastDataProvider provider)
value - the value to convertprovider - the cast information providerpublic static java.time.LocalTime valueToLocalTime(Value value, CastDataProvider provider)
value - the value to convertprovider - the cast information providerpublic static java.time.LocalDateTime valueToLocalDateTime(Value value, CastDataProvider provider)
value - the value to convertprovider - the cast information providerpublic static java.time.Instant valueToInstant(Value value, CastDataProvider provider)
value - the value to convertprovider - the cast information providerpublic static java.time.OffsetDateTime valueToOffsetDateTime(Value value, CastDataProvider provider)
value - the value to convertprovider - the cast information providerpublic static java.time.ZonedDateTime valueToZonedDateTime(Value value, CastDataProvider provider)
value - the value to convertprovider - the cast information providerpublic static java.time.OffsetTime valueToOffsetTime(Value value, CastDataProvider provider)
value - the value to convertprovider - the cast information providerpublic static java.time.Period valueToPeriod(Value value)
value - the value to convertpublic static java.time.Duration valueToDuration(Value value)
value - the value to convertpublic static ValueDate localDateToValue(java.time.LocalDate localDate)
localDate - the LocalDate to convert, not nullpublic static ValueTime localTimeToValue(java.time.LocalTime localTime)
localTime - the LocalTime to convert, not nullpublic static ValueTimestamp localDateTimeToValue(java.time.LocalDateTime localDateTime)
localDateTime - the LocalDateTime to convert, not nullpublic static ValueTimestampTimeZone instantToValue(java.time.Instant instant)
instant - the Instant to convert, not nullpublic static ValueTimestampTimeZone offsetDateTimeToValue(java.time.OffsetDateTime offsetDateTime)
offsetDateTime - the OffsetDateTime to convert, not nullpublic static ValueTimestampTimeZone zonedDateTimeToValue(java.time.ZonedDateTime zonedDateTime)
zonedDateTime - the ZonedDateTime to convert, not nullpublic static ValueTimeTimeZone offsetTimeToValue(java.time.OffsetTime offsetTime)
offsetTime - the OffsetTime to convert, not nullpublic static ValueInterval periodToValue(java.time.Period period)
period - the Period to convert, not nullpublic static ValueInterval durationToValue(java.time.Duration duration)
duration - the Duration to convert, not null