Home
last modified time | relevance | path

Searched refs:DecimalStyle (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDecimalStyle.java64 import java.time.format.DecimalStyle;
79 Set<Locale> locales = DecimalStyle.getAvailableLocales(); in test_getAvailableLocales()
87 DecimalStyle loc1 = DecimalStyle.of(Locale.CANADA); in test_of_Locale()
97 DecimalStyle loc1 = DecimalStyle.STANDARD; in test_STANDARD()
107 DecimalStyle base = DecimalStyle.STANDARD; in test_zeroDigit()
113 DecimalStyle base = DecimalStyle.STANDARD; in test_positiveSign()
119 DecimalStyle base = DecimalStyle.STANDARD; in test_negativeSign()
125 DecimalStyle base = DecimalStyle.STANDARD; in test_decimalSeparator()
167 DecimalStyle a = DecimalStyle.STANDARD; in test_equalsHashCode1()
168 DecimalStyle b = DecimalStyle.STANDARD; in test_equalsHashCode1()
[all …]
DTCKDateTimeFormatter.java93 import java.time.format.DecimalStyle;
137 … DateTimeFormatter base = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_withLocale()
144 … DateTimeFormatter base = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_withLocale_null()
403 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_simple()
410 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_noSuchField()
416 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_null()
423 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable()
431 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable_noSuchField()
438 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable_nullTemporal()
445 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable_nullAppendable()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DDecimalStyle.java84 public final class DecimalStyle { class
91 public static final DecimalStyle STANDARD = new DecimalStyle('0', '+', '-', '.');
95 …private static final ConcurrentMap<Locale, DecimalStyle> CACHE = new ConcurrentHashMap<>(16, 0.75f…
142 public static DecimalStyle ofDefaultLocale() { in ofDefaultLocale()
154 public static DecimalStyle of(Locale locale) { in of()
156 DecimalStyle info = CACHE.get(locale); in of()
165 private static DecimalStyle create(Locale locale) { in create()
174 return new DecimalStyle(zeroDigit, positiveSign, negativeSign, decimalSeparator); in create()
186 …private DecimalStyle(char zeroChar, char positiveSignChar, char negativeSignChar, char decimalPoin… in DecimalStyle() method in DecimalStyle
216 public DecimalStyle withZeroDigit(char zeroDigit) { in withZeroDigit()
[all …]
DDateTimeFormatter.java496 private final DecimalStyle decimalStyle;
1373 Locale locale, DecimalStyle decimalStyle, in DateTimeFormatter()
1422 public DecimalStyle getDecimalStyle() { in getDecimalStyle()
1434 public DateTimeFormatter withDecimalStyle(DecimalStyle decimalStyle) { in withDecimalStyle()
DDateTimeParseContext.java157 DecimalStyle getDecimalStyle() { in getDecimalStyle()
DDateTimePrintContext.java253 DecimalStyle getDecimalStyle() {
DDateTimeFormatterBuilder.java2084 return new DateTimeFormatter(pp, locale, DecimalStyle.STANDARD, in toFormatter()
2553 DecimalStyle decimalStyle = context.getDecimalStyle(); in format()
2948 DecimalStyle decimalStyle = context.getDecimalStyle(); in format()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDecimalStyle.java64 import java.time.format.DecimalStyle;
77 DecimalStyle loc1 = DecimalStyle.of(Locale.CANADA); in test_of_Locale_cached()
78 DecimalStyle loc2 = DecimalStyle.of(Locale.CANADA); in test_of_Locale_cached()
85 DecimalStyle loc1 = DecimalStyle.ofDefaultLocale(); in test_ofDefaultLocale_cached()
86 DecimalStyle loc2 = DecimalStyle.ofDefaultLocale(); in test_ofDefaultLocale_cached()
DAbstractTestPrinterParser.java66 import java.time.format.DecimalStyle;
88 protected DecimalStyle decimalStyle;
97 decimalStyle = DecimalStyle.STANDARD; in setUp()
DTestZoneTextPrinterParser.java31 import java.time.format.DecimalStyle;
66 .withDecimalStyle(DecimalStyle.of(locale)); in getFormatter()
194 … .withDecimalStyle(DecimalStyle.of(locale)); in test_ParseText()
255 .withDecimalStyle(DecimalStyle.of(locale)); in getFormatter()
DTestNonIsoFormatter.java42 import java.time.format.DecimalStyle;
162 .withDecimalStyle(DecimalStyle.of(numberingLocale)); in test_formatLocalizedDate()
172 .withDecimalStyle(DecimalStyle.of(numberingLocale)); in test_parseLocalizedText()
DTestDateTimeFormatter.java85 import java.time.format.DecimalStyle;
105 .withDecimalStyle(DecimalStyle.STANDARD); in test_withLocale_same()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterTest.java21 import java.time.format.DecimalStyle;
47 DecimalStyle arDecimalStyle = DecimalStyle.of(arLocale); in test_getDecimalStyle()
49 assertNotEquals(DecimalStyle.STANDARD, arDecimalStyle); in test_getDecimalStyle()
53 assertEquals(formatter.toString(), DecimalStyle.STANDARD, formatter.getDecimalStyle()); in test_getDecimalStyle()
60 assertEquals(formatter.toString(), DecimalStyle.STANDARD, formatter.getDecimalStyle()); in test_getDecimalStyle()
/libcore/
Dopenjdk_java_files.bp845 "ojluni/src/main/java/java/time/format/DecimalStyle.java",