com.axibase.date.FullMonthDatetimeProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of date-processor Show documentation
Show all versions of date-processor Show documentation
Library for manipulating timestamps using Axibase datetime syntax
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