io.sphere.sdk.json.DateTimeSerializationModule Maven / Gradle / Ivy
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