本文整理汇总了Java中sun.util.spi.CalendarProvider类的典型用法代码示例。如果您正苦于以下问题:Java CalendarProvider类的具体用法?Java CalendarProvider怎么用?Java CalendarProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CalendarProvider类属于sun.util.spi包,在下文中一共展示了CalendarProvider类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getCalendarProvider
import sun.util.spi.CalendarProvider; //导入依赖的package包/类
/**
* Getter methods for sun.util.spi.* providers
*/
@Override
public CalendarProvider getCalendarProvider() {
if (calendarProvider == null) {
CalendarProvider provider = AccessController.doPrivileged(
(PrivilegedAction<CalendarProvider>) () ->
new CalendarProviderImpl(
getAdapterType(),
getLanguageTagSet("CalendarData")));
synchronized (this) {
if (calendarProvider == null) {
calendarProvider = provider;
}
}
}
return calendarProvider;
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:21,代码来源:JRELocaleProviderAdapter.java示例2: getCalendarProvider
import sun.util.spi.CalendarProvider; //导入依赖的package包/类
/**
* Getter methods for sun.util.spi.* providers
*/
@Override
public CalendarProvider getCalendarProvider() {
if (calendarProvider == null) {
CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
getLanguageTagSet("CalendarData"));
synchronized (this) {
if (calendarProvider == null) {
calendarProvider = provider;
}
}
}
return calendarProvider;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:JRELocaleProviderAdapter.java示例3: getCalendarProvider
import sun.util.spi.CalendarProvider; //导入依赖的package包/类
/**
* Getter methods for sun.util.spi.* providers
*/
@Override
public CalendarProvider getCalendarProvider() {
return getLocaleServiceProvider(CalendarProvider.class);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:AuxLocaleProviderAdapter.java示例4: getCalendarProvider
import sun.util.spi.CalendarProvider; //导入依赖的package包/类
/**
* Returns a CalendarProvider for this LocaleProviderAdapter, or null if no
* CalendarProvider is available.
*
* @return a CalendarProvider
*/
public abstract CalendarProvider getCalendarProvider();
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:LocaleProviderAdapter.java本文标签属性:
示例:示例的拼音
代码:代码生成器
java:java模拟器
CalendarProvider:CalendarProvider