Java Code Examples for android.icu.util.Calendar#getClass()

The following examples show how to use android.icu.util.Calendar#getClass() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChineseDateFormatSymbols.java    From j2objc with Apache License 2.0 2 votes vote down vote up
/**
 * Construct a ChineseDateFormatSymbols for the provided calendar and locale.
 * @param cal the Calendar
 * @param locale the locale
 * @deprecated ICU 50
 */
@Deprecated
public ChineseDateFormatSymbols(Calendar cal, Locale locale) {
    // NPE is thrown here when cal is null, like the super class does
    super(cal.getClass(), locale);
}
 
Example 2
Source File: ChineseDateFormatSymbols.java    From j2objc with Apache License 2.0 2 votes vote down vote up
/**
 * Construct a ChineseDateFormatSymbols for the provided calendar and locale.
 * @param cal the Calendar
 * @param locale the locale
 * @deprecated ICU 50
 */
@Deprecated
public ChineseDateFormatSymbols(Calendar cal, ULocale locale) {
    // NPE is thrown here when cal is null, like the super class does
    super(cal.getClass(), locale);
}