@Implementation(maxSdk = LOLLIPOP_MR1) public static long createDateIntervalFormat(String skeleton, String localeName, String tzName) { address++; INTERVAL_CACHE.put(address, com.ibm.icu.text.DateIntervalFormat.getInstance(skeleton, new Locale(localeName))); return address; }
@Implementation public static long createDateIntervalFormat(String skeleton, String localeName, String tzName) { address++; INTERVAL_CACHE.put(address, com.ibm.icu.text.DateIntervalFormat.getInstance(skeleton, new Locale(localeName))); return address; }
@Implementation public static long createDateIntervalFormat(String skeleton, String localeName, String tzName) { address++; INTERVAL_CACHE.put(address, com.ibm.icu.text.DateIntervalFormat.getInstance(skeleton, new Locale(localeName))); return address; }
@Implementation public static long createDateIntervalFormat(String skeleton, String localeName, String tzName) { address++; INTERVAL_CACHE.put(address, com.ibm.icu.text.DateIntervalFormat.getInstance(skeleton, new Locale(localeName))); return address; }
@Implementation(maxSdk = LOLLIPOP_MR1) public static long createDateIntervalFormat(String skeleton, String localeName, String tzName) { address++; INTERVAL_CACHE.put(address, com.ibm.icu.text.DateIntervalFormat.getInstance(skeleton, new Locale(localeName))); return address; }
/** * Construct a DateIntervalFormat from skeleton and the default <code>FORMAT</code> locale. * * This is a convenient override of * getInstance(String skeleton, ULocale locale) * with the value of locale as default <code>FORMAT</code> locale. * * @param skeleton the skeleton on which interval format based. * @return a date time interval formatter. * @see Category#FORMAT * @stable ICU 4.0 */ public static final DateIntervalFormat getInstance(String skeleton) { return getInstance(skeleton, ULocale.getDefault(Category.FORMAT)); }
/** * Construct a DateIntervalFormat from skeleton and a given locale. * * This is a convenient override of * getInstance(String skeleton, ULocale locale) * * <p>Example code:{@.jcite com.ibm.icu.samples.text.dateintervalformat.DateIntervalFormatSample:---dtitvfmtPreDefinedExample} * @param skeleton the skeleton on which interval format based. * @param locale the given locale * @return a date time interval formatter. * @stable ICU 4.0 */ public static final DateIntervalFormat getInstance(String skeleton, Locale locale) { return getInstance(skeleton, ULocale.forLocale(locale)); }
/** * Construct a DateIntervalFormat from skeleton * a DateIntervalInfo, and the given locale. * * This is a convenient override of * getInstance(String skeleton, ULocale locale, DateIntervalInfo dtitvinf) * * <p>Example code:{@.jcite com.ibm.icu.samples.text.dateintervalformat.DateIntervalFormatSample:---dtitvfmtCustomizedExample} * @param skeleton the skeleton on which interval format based. * @param locale the given locale * @param dtitvinf the DateIntervalInfo object to be adopted. * @return a date time interval formatter. * @stable ICU 4.0 */ public static final DateIntervalFormat getInstance(String skeleton, Locale locale, DateIntervalInfo dtitvinf) { return getInstance(skeleton, ULocale.forLocale(locale), dtitvinf); }
/** * Construct a DateIntervalFormat from skeleton * DateIntervalInfo, and the default <code>FORMAT</code> locale. * * This is a convenient override of * getInstance(String skeleton, ULocale locale, DateIntervalInfo dtitvinf) * with the locale value as default <code>FORMAT</code> locale. * * @param skeleton the skeleton on which interval format based. * @param dtitvinf the DateIntervalInfo object to be adopted. * @return a date time interval formatter. * @see Category#FORMAT * @stable ICU 4.0 */ public static final DateIntervalFormat getInstance(String skeleton, DateIntervalInfo dtitvinf) { return getInstance(skeleton, ULocale.getDefault(Category.FORMAT), dtitvinf); }