List of usage examples for com.google.gson JsonDeserializer interface-usage
From source file com.fatboyindustrial.gsonjavatime.OffsetTimeConverter.java
/** * GSON serialiser/deserialiser for converting {@link OffsetTime} objects. */ public class OffsetTimeConverter extends FormatableConverter implements JsonSerializer<OffsetTime>, JsonDeserializer<OffsetTime> {
From source file com.fatboyindustrial.gsonjavatime.ZonedDateTimeConverter.java
/** * GSON serialiser/deserialiser for converting {@link ZonedDateTime} objects. */ public class ZonedDateTimeConverter extends FormatableConverter implements JsonSerializer<ZonedDateTime>, JsonDeserializer<ZonedDateTime> {
From source file com.fatboyindustrial.gsonjodatime.DateMidnightConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link DateMidnight} objects. */ public class DateMidnightConverter implements JsonSerializer<DateMidnight>, JsonDeserializer<DateMidnight> { /** * Gson invokes this call-back method during serialization when it encounters a field of the
From source file com.fatboyindustrial.gsonjodatime.DateTimeConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link DateTime} objects. */ public class DateTimeConverter implements JsonSerializer<DateTime>, JsonDeserializer<DateTime> { /** * Gson invokes this call-back method during serialization when it encounters a field of the
From source file com.fatboyindustrial.gsonjodatime.DurationConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link Duration} objects. */ public class DurationConverter implements JsonSerializer<Duration>, JsonDeserializer<Duration> { /** * Gson invokes this call-back method during serialization when it encounters a field of the
From source file com.fatboyindustrial.gsonjodatime.InstantConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link Instant} objects. */ public class InstantConverter implements JsonSerializer<Instant>, JsonDeserializer<Instant> { private static final String PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
From source file com.fatboyindustrial.gsonjodatime.IntervalConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link Interval} objects. */ public class IntervalConverter implements JsonSerializer<Interval>, JsonDeserializer<Interval> { /** * Gson invokes this call-back method during serialization when it encounters a field of the
From source file com.fatboyindustrial.gsonjodatime.LocalDateConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link LocalDate} objects. */ public class LocalDateConverter implements JsonSerializer<LocalDate>, JsonDeserializer<LocalDate> { /** Format specifier */ private static final String PATTERN = "yyyy-MM-dd";
From source file com.fatboyindustrial.gsonjodatime.LocalDateTimeConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link LocalDateTime} objects. */ public class LocalDateTimeConverter implements JsonSerializer<LocalDateTime>, JsonDeserializer<LocalDateTime> { /** Format specifier */ private static final String PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSS";
From source file com.fatboyindustrial.gsonjodatime.LocalTimeConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link DateTime} objects. */ public class LocalTimeConverter implements JsonSerializer<LocalTime>, JsonDeserializer<LocalTime> { /** Format specifier */ private static final String PATTERN = "HH:mm:ss.SSS";