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