Class TimeObjectSerializer
java.lang.Object
eu.cloudnetservice.driver.network.rpc.defaults.object.serializers.TimeObjectSerializer
Collection of object serializers for all kinds of java.time classes. Calendar systems other than ISO-8601 are not
supported (such as the Japanese calendar).
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectSerializer<Duration>A serializer for a duration.static final ObjectSerializer<Instant>A serializer for an instant.static final ObjectSerializer<LocalDate>A serializer for a local date.static final ObjectSerializer<LocalDateTime>A serializer for a local date and a local time mapping.static final ObjectSerializer<LocalTime>A serializer for a local time.static final ObjectSerializer<MonthDay>Serializer for a day in a month.static final ObjectSerializer<OffsetDateTime>A serializer for a time and date mapping with a zone offset.static final ObjectSerializer<OffsetTime>A serializer for a time with a zone offset.static final ObjectSerializer<Period>A serializer for a period.static final ObjectSerializer<YearMonth>Serializer for a year and month mapping.static final ObjectSerializer<Year>Serializer for a year.static final ObjectSerializer<ZoneId>A serializer for a standard zone region or any zone offset.static final ObjectSerializer<ZonedDateTime>A serializer for a date and time mapping in a specific time zone. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
YEAR_SERIALIZER
Serializer for a year.- See Also:
-
YEAR_MONTH_SERIALIZER
Serializer for a year and month mapping.- See Also:
-
MONTH_DAY_SERIALIZER
Serializer for a day in a month.- See Also:
-
ZONE_ID_SERIALIZER
A serializer for a standard zone region or any zone offset. Custom implementations are not supported.- See Also:
-
DURATION_SERIALIZER
A serializer for a duration.- See Also:
-
PERIOD_SERIALIZER
A serializer for a period.- See Also:
-
INSTANT_SERIALIZER
A serializer for an instant.- See Also:
-
LOCAL_DATE_SERIALIZER
A serializer for a local date.- See Also:
-
LOCAL_TIME_SERIALIZER
A serializer for a local time.- See Also:
-
LOCAL_DATE_TIME_SERIALIZER
A serializer for a local date and a local time mapping.- See Also:
-
ZONED_DATE_TIME_SERIALIZER
A serializer for a date and time mapping in a specific time zone. Only the standard zone id implementations (zone offset and zone region) are supported.- See Also:
-
OFFSET_TIME_SERIALIZER
A serializer for a time with a zone offset.- See Also:
-
OFFSET_DATE_TIME_SERIALIZER
A serializer for a time and date mapping with a zone offset.- See Also:
-
-
Constructor Details
-
TimeObjectSerializer
private TimeObjectSerializer()
-