/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestReducedPrinter.java | 83 private DateTimeFormatter getFormatter0(TemporalField field, int width, int baseValue) { in getFormatter0() argument 84 …return builder.appendValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalS… in getFormatter0() 87 …e DateTimeFormatter getFormatter0(TemporalField field, int minWidth, int maxWidth, int baseValue) { in getFormatter0() argument 88 …return builder.appendValueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDe… in getFormatter0() 91 …imeFormatter getFormatterBaseDate(TemporalField field, int minWidth, int maxWidth, int baseValue) { in getFormatterBaseDate() argument 92 …return builder.appendValueReduced(field, minWidth, maxWidth, LocalDate.of(baseValue, 1, 1)).toForm… in getFormatterBaseDate() 179 …public void test_pivot(int minWidth, int maxWidth, int baseValue, int value, String result) throws… in test_pivot() argument 181 … getFormatter0(YEAR, minWidth, maxWidth, baseValue).formatTo(new MockFieldValue(YEAR, value), buf); in test_pivot() 196 …public void test_pivot_baseDate(int minWidth, int maxWidth, int baseValue, int value, String resul… in test_pivot_baseDate() argument 198 …getFormatterBaseDate(YEAR, minWidth, maxWidth, baseValue).formatTo(new MockFieldValue(YEAR, value)… in test_pivot_baseDate()
|
D | TestReducedParser.java | 99 private DateTimeFormatter getFormatter0(TemporalField field, int width, int baseValue) { in getFormatter0() argument 100 …return builder.appendValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalS… in getFormatter0() 103 …e DateTimeFormatter getFormatter0(TemporalField field, int minWidth, int maxWidth, int baseValue) { in getFormatter0() argument 104 …return builder.appendValueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDe… in getFormatter0() 107 …imeFormatter getFormatterBaseDate(TemporalField field, int minWidth, int maxWidth, int baseValue) { in getFormatterBaseDate() argument 108 …return builder.appendValueReduced(field, minWidth, maxWidth, LocalDate.of(baseValue, 1, 1)).toForm… in getFormatterBaseDate() 121 …public void test_parse_error(TemporalField field, int width, int baseValue, String text, int pos, … in test_parse_error() argument 123 getFormatter0(field, width, baseValue).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 186 …public void test_parseAllStrict(TemporalField field, int width, int baseValue, String input, int p… in test_parseAllStrict() argument 189 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllStrict() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 571 int width, int maxWidth, int baseValue) { in appendValueReduced() argument 573 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, baseValue, null); in appendValueReduced() 3003 private final int baseValue; field in DateTimeFormatterBuilder.ReducedPrinterParser 3016 int baseValue, ChronoLocalDate baseDate) { in ReducedPrinterParser() argument 3017 this(field, minWidth, maxWidth, baseValue, baseDate, 0); in ReducedPrinterParser() 3029 if (field.range().isValidValue(baseValue) == false) { in ReducedPrinterParser() 3032 if ((((long) baseValue) + EXCEED_POINTS[maxWidth]) > Integer.MAX_VALUE) { in ReducedPrinterParser() 3050 int baseValue, ChronoLocalDate baseDate, int subsequentWidth) { in ReducedPrinterParser() argument 3052 this.baseValue = baseValue; in ReducedPrinterParser() 3059 int baseValue = this.baseValue; in getValue() local [all …]
|