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

org.javers.java8support.MonthDayTypeAdapter Maven / Gradle / Ivy

There is a newer version: 7.6.2
Show newest version
package org.javers.java8support;

import java.time.MonthDay;
import org.javers.core.json.BasicStringTypeAdapter;

class MonthDayTypeAdapter extends BasicStringTypeAdapter {
    @Override
    public String serialize(MonthDay sourceValue) {
        return sourceValue.toString();
    }

    @Override
    public MonthDay deserialize(String serializedValue) {
        return MonthDay.parse(serializedValue);
    }

    @Override
    public Class getValueType() {
        return MonthDay.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy