APIdia Launch Partner
Top Description Fields Constructors Methods
sun.util.cldr

public Class CLDRCalendarDataProviderImpl

extends CalendarDataProviderImpl
Class Inheritance
Static Imports
sun.util.locale.provider.LocaleProviderAdapter.Type

Concrete implementation of the CalendarDataProvider class for the CLDR LocaleProviderAdapter.
Author
Naoto Sato

Field Summary

Modifier and TypeField and Description
private static final Map<String, Integer>
private static final Map<String, Integer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
findValue(String key, Locale locale)

Finds the requested integer value for the locale.

public int
getFirstDayOfWeek(Locale locale)

Overrides sun.util.locale.provider.CalendarDataProviderImpl.getFirstDayOfWeek.

Returns the first day of a week in the given locale.

public int
getMinimalDaysInFirstWeek(Locale locale)

Overrides sun.util.locale.provider.CalendarDataProviderImpl.getMinimalDaysInFirstWeek.

Returns the minimal number of days required in the first week of a year.

private static Optional<Integer>
Inherited from sun.util.locale.provider.CalendarDataProviderImpl:
getAvailableLanguageTagsgetAvailableLocales

Field Detail

firstDayback to summary
private static final Map<String, Integer> firstDay
minDaysback to summary
private static final Map<String, Integer> minDays

Constructor Detail

CLDRCalendarDataProviderImplback to summary
public CLDRCalendarDataProviderImpl(LocaleProviderAdapter.Type type, Set<String> langtags)

Method Detail

findValueback to summary
private static int findValue(String key, Locale locale)

Finds the requested integer value for the locale. Each resource consists of the following: (n: cc1 cc2 ... ccx;)* where 'n' is the integer for the following region codes, terminated by a ';'.

getFirstDayOfWeekback to summary
public int getFirstDayOfWeek(Locale locale)

Overrides sun.util.locale.provider.CalendarDataProviderImpl.getFirstDayOfWeek.

Doc from java.util.spi.CalendarDataProvider.getFirstDayOfWeek.

Returns the first day of a week in the given locale. This information is required by Calendar to support operations on the week-related calendar fields.

Annotations
@Override
getMinimalDaysInFirstWeekback to summary
public int getMinimalDaysInFirstWeek(Locale locale)

Overrides sun.util.locale.provider.CalendarDataProviderImpl.getMinimalDaysInFirstWeek.

Doc from java.util.spi.CalendarDataProvider.getMinimalDaysInFirstWeek.

Returns the minimal number of days required in the first week of a year. This information is required by Calendar to determine the first week of a year. Refer to the description of how Calendar determines the first week.

Annotations
@Override
retrieveIntegerback to summary
private static Optional<Integer> retrieveInteger(String src, String region)