/** * This method is called at class initialization time to define the * value for constant member DEFAULT_PATTERN_CHARS. All other methods needing * this data should just read that constant. */ private static String initDefaultChars() { final DateFormatSymbols defaultSymbols = new DateFormatSymbols(Locale.US); return defaultSymbols.getLocalPatternChars(); }
/** * This method is called at class initialization time to define the * value for constant member DEFAULT_PATTERN_CHARS. All other methods needing * this data should just read that constant. */ private static String initDefaultChars() { final DateFormatSymbols defaultSymbols = new DateFormatSymbols(Locale.US); return defaultSymbols.getLocalPatternChars(); }
/** * Sets the date and time format symbols of this date format. * * @param newFormatSymbols the new date and time format symbols * @throws NullPointerException if the given newFormatSymbols is null * @see #getDateFormatSymbols */ @Override public void setDateFormatSymbols( DateFormatSymbols newFormatSymbols ) { patternNanosecond = newFormatSymbols.getLocalPatternChars().charAt( PATTERN_MILLISECOND_POSITION ); super.setDateFormatSymbols( newFormatSymbols ); }
/** * Changes the pattern of this simple date format to the specified pattern * which uses localized pattern characters. * * @param template * the localized pattern. */ public void applyLocalizedPattern(String template) { pattern = convertPattern(template, formatData.getLocalPatternChars(), PATTERN_CHARS, true); }
/** * Returns the pattern of this simple date format using localized pattern * characters. * * @return the localized pattern. */ public String toLocalizedPattern() { return convertPattern(pattern, PATTERN_CHARS, formatData.getLocalPatternChars(), false); }
final String localChars = localizedSymbols.getLocalPatternChars();
final String localChars = localizedSymbols.getLocalPatternChars();
patternNanosecond = formatSymbols.getLocalPatternChars().charAt( PATTERN_MILLISECOND_POSITION ); StringBuilder sb = new StringBuilder();
/** * Returns localized date-time pattern characters. For example: 'u', 't', etc. * * <p>Note: ICU no longer provides localized date-time pattern characters for a locale * starting ICU 3.8. This method returns the non-localized date-time pattern * characters unless user defined localized data is set by setLocalPatternChars. * @return the localized date-time pattern characters. * @stable ICU 2.0 */ public String getLocalPatternChars() { return dfs.getLocalPatternChars(); }
/** * This method is called at class initialization time to define the * value for constant member DEFAULT_PATTERN_CHARS. All other methods needing * this data should just read that constant. */ private static String initDefaultChars() { DateFormatSymbols defaultSymbols = new DateFormatSymbols(Locale.US); return defaultSymbols.getLocalPatternChars(); }
/** * This method is called at class initialization time to define the * value for constant member DEFAULT_PATTERN_CHARS. All other methods needing * this data should just read that constant. */ private static String initDefaultChars() { DateFormatSymbols defaultSymbols = new DateFormatSymbols(Locale.US); return defaultSymbols.getLocalPatternChars(); }
/** * This method is called at class initialization time to define the * value for constant member DEFAULT_PATTERN_CHARS. All other methods needing * this data should just read that constant. */ private static String initDefaultChars() { final DateFormatSymbols defaultSymbols = new DateFormatSymbols(Locale.US); return defaultSymbols.getLocalPatternChars(); }
/** * This method is called at class initialization time to define the * value for constant member DEFAULT_PATTERN_CHARS. All other methods needing * this data should just read that constant. */ private static String initDefaultChars() { final DateFormatSymbols defaultSymbols = new DateFormatSymbols(Locale.US); return defaultSymbols.getLocalPatternChars(); }
/** * This method is called at class initialization time to define the * value for constant member DEFAULT_PATTERN_CHARS. All other methods needing * this data should just read that constant. */ private static String initDefaultChars() { final DateFormatSymbols defaultSymbols = new DateFormatSymbols(Locale.US); return defaultSymbols.getLocalPatternChars(); }
/** * Returns the pattern of this simple date format using localized pattern * characters. * * @return the localized pattern. */ public String toLocalizedPattern() { return convertPattern(pattern, PATTERN_CHARS, formatData.getLocalPatternChars(), false); }
/** * Changes the pattern of this simple date format to the specified pattern * which uses localized pattern characters. * * @param template * the localized pattern. */ public void applyLocalizedPattern(String template) { pattern = convertPattern(template, formatData.getLocalPatternChars(), PATTERN_CHARS, true); }
public String getLocalePatternChars() { if (fIcuDfs == null) { return super.getLocalPatternChars(); } return fIcuDfs.getLocalPatternChars(); }
/** * Returns a localized pattern string describing this date format. * * @return a localized pattern string describing this date format. */ public String toLocalizedPattern() { return translatePattern(pattern, DateFormatSymbols.patternChars, formatData.getLocalPatternChars()); }
/** * Changes the pattern of this simple date format to the specified pattern * which uses localized pattern characters. * * @param template * the localized pattern. */ public void applyLocalizedPattern(String template) { pattern = convertPattern(template, formatData.getLocalPatternChars(), PATTERN_CHARS, true); }
/** * Changes the pattern of this simple date format to the specified pattern * which uses localized pattern characters. * * @param template * the localized pattern. */ public void applyLocalizedPattern(String template) { pattern = convertPattern(template, formatData.getLocalPatternChars(), PATTERN_CHARS, true); }