equal
deleted
inserted
replaced
83 /** |
83 /** |
84 * Context object used during date and time printing. |
84 * Context object used during date and time printing. |
85 * <p> |
85 * <p> |
86 * This class provides a single wrapper to items used in the format. |
86 * This class provides a single wrapper to items used in the format. |
87 * |
87 * |
88 * <h3>Specification for implementors</h3> |
88 * @implSpec |
89 * This class is a mutable context intended for use from a single thread. |
89 * This class is a mutable context intended for use from a single thread. |
90 * Usage of the class is thread-safe within standard printing as the framework creates |
90 * Usage of the class is thread-safe within standard printing as the framework creates |
91 * a new instance of the class for each format and printing is single-threaded. |
91 * a new instance of the class for each format and printing is single-threaded. |
92 * |
92 * |
93 * @since 1.8 |
93 * @since 1.8 |
232 |
232 |
233 /** |
233 /** |
234 * Gets the locale. |
234 * Gets the locale. |
235 * <p> |
235 * <p> |
236 * This locale is used to control localization in the format output except |
236 * This locale is used to control localization in the format output except |
237 * where localization is controlled by the symbols. |
237 * where localization is controlled by the DecimalStyle. |
238 * |
238 * |
239 * @return the locale, not null |
239 * @return the locale, not null |
240 */ |
240 */ |
241 Locale getLocale() { |
241 Locale getLocale() { |
242 return formatter.getLocale(); |
242 return formatter.getLocale(); |
243 } |
243 } |
244 |
244 |
245 /** |
245 /** |
246 * Gets the formatting symbols. |
246 * Gets the DecimalStyle. |
247 * <p> |
247 * <p> |
248 * The symbols control the localization of numeric output. |
248 * The DecimalStyle controls the localization of numeric output. |
249 * |
249 * |
250 * @return the formatting symbols, not null |
250 * @return the DecimalStyle, not null |
251 */ |
251 */ |
252 DateTimeFormatSymbols getSymbols() { |
252 DecimalStyle getDecimalStyle() { |
253 return formatter.getSymbols(); |
253 return formatter.getDecimalStyle(); |
254 } |
254 } |
255 |
255 |
256 //----------------------------------------------------------------------- |
256 //----------------------------------------------------------------------- |
257 /** |
257 /** |
258 * Starts the printing of an optional segment of the input. |
258 * Starts the printing of an optional segment of the input. |