All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.json.DateTimeSerializationModule Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.json;

import com.fasterxml.jackson.databind.module.SimpleModule;

import java.time.ZonedDateTime;
import java.time.LocalDate;
import java.time.LocalTime;

final class DateTimeSerializationModule extends SimpleModule {
    private static final long serialVersionUID = 0L;

    public DateTimeSerializationModule() {
        addSerializer(ZonedDateTime.class, new ZonedDateTimeSerializer());
        addSerializer(LocalDate.class, new LocalDateSerializer());
        addSerializer(LocalTime.class, new LocalTimeSerializer());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy