Example usage for com.google.gson JsonSerializer interface-usage

List of usage examples for com.google.gson JsonSerializer interface-usage

Introduction

In this page you can find the example usage for com.google.gson JsonSerializer interface-usage.

Usage

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";

From source file com.fatboyindustrial.gsonjodatime.PeriodConverter.java

/**
 * GSON serialiser/deserialiser for converting Joda {@link Period} objects.
 */
public class PeriodConverter implements JsonSerializer<Period>, JsonDeserializer<Period> {
    /**
     * Gson invokes this call-back method during serialization when it encounters a field of the

From source file com.flexcore.hibernate.config.MonedaAdapter.java

/**
 *
 * @author Oscar Montes
 */
public class MonedaAdapter implements JsonSerializer<Moneda> {
    @Override