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

net.optionfactory.spring.time.jackson.adapters.ZoneIdFromIdString Maven / Gradle / Ivy

There is a newer version: 13.0
Show newest version
package net.optionfactory.spring.time.jackson.adapters;

import com.fasterxml.jackson.core.JacksonException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
import java.time.ZoneId;

public class ZoneIdFromIdString extends JsonDeserializer {

    @Override
    public ZoneId deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JacksonException {
        return ZoneId.of(p.getText());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy