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

io.sphere.sdk.json.LocaleModule 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.util.Locale;

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

    LocaleModule() {
        addSerializer(Locale.class, new LocaleSerializer());
        addDeserializer(Locale.class, new LocaleDeserializer());
        addKeyDeserializer(Locale.class, new LocaleKeyDeserializer());
        addKeySerializer(Locale.class, new LocaleKeySerializer());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy