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

nl.pvanassen.highchart.api.serializer.DateTimeLabelFormatsSerializer Maven / Gradle / Ivy

The newest version!
package nl.pvanassen.highchart.api.serializer;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

import nl.pvanassen.highchart.api.format.DateTimeLabelFormats;
import nl.pvanassen.highchart.api.format.DateTimeLabelFormats.TimeUnit;

public class DateTimeLabelFormatsSerializer extends Serializer {

    @Override
    public Map getProperties(DateTimeLabelFormats instance) {
        Map map = instance.getFormats();
        Map r = new HashMap();
        for (Entry e : map.entrySet()) {
            r.put(e.getKey().name().toLowerCase(), e.getValue());
        }
        return r;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy