Package dev.orne.i18n.spi.eu
Class BasqueDateFormatProvider
java.lang.Object
java.util.spi.LocaleServiceProvider
java.text.spi.DateFormatProvider
dev.orne.i18n.spi.eu.BasqueDateFormatProvider
Basque date format provider.
- Since:
- 1.0
- Version:
- 1.0, 2024-10
- Author:
- (w) Iker Hernaez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Locale[]static @NotNull StringgetDateFormat(int style) Returns the date format for the specified style.getDateInstance(int style, @NotNull Locale locale) getDateTimeInstance(int dateStyle, int timeStyle, @NotNull Locale locale) static @NotNull StringgetTimeFormat(int style) Returns the time format for the specified style.getTimeInstance(int style, @NotNull Locale locale) Methods inherited from class java.util.spi.LocaleServiceProvider
isSupportedLocale
-
Constructor Details
-
BasqueDateFormatProvider
public BasqueDateFormatProvider()Creates a new instance.
-
-
Method Details
-
getDateInstance
- Specified by:
getDateInstancein classDateFormatProvider
-
getTimeInstance
- Specified by:
getTimeInstancein classDateFormatProvider
-
getDateTimeInstance
public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, @NotNull @NotNull Locale locale) - Specified by:
getDateTimeInstancein classDateFormatProvider
-
getAvailableLocales
- Specified by:
getAvailableLocalesin classLocaleServiceProvider
-
getDateFormat
Returns the date format for the specified style.- Parameters:
style- The date style.- Returns:
- The date format.
-
getTimeFormat
Returns the time format for the specified style.- Parameters:
style- The time style.- Returns:
- The time format.
-