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

com.axibase.date.FullMonthDatetimeProcessor Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.axibase.date;

import java.time.Month;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.time.format.TextStyle;
import java.util.Locale;
import java.util.Map;

class FullMonthDatetimeProcessor extends AbstractMonthDateTimeProcessor {
    FullMonthDatetimeProcessor(Locale locale, ZoneId zoneId) {
        super(locale, TextStyle.FULL, TextStyle.FULL_STANDALONE, zoneId);
    }

    private FullMonthDatetimeProcessor(DateTimeFormatter formatter, Map monthMap, ZoneId defaultZone) {
        super(formatter, monthMap, defaultZone);
    }

    @Override
    public DatetimeProcessor withLocale(Locale locale) {
        return formatter.getLocale().equals(locale) ? this : new FullMonthDatetimeProcessor(locale, defaultZone);
    }

    @Override
    public DatetimeProcessor withDefaultZone(ZoneId zoneId) {
        return defaultZone.equals(zoneId) ? this : new FullMonthDatetimeProcessor(formatter, monthMap, zoneId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy