Home
last modified time | relevance | path

Searched refs:appendValue (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatterBuilder.java121 .appendValue(YEAR) in test_parseDefaulting_yearOptionalMonthOptionalDay()
122 .optionalStart().appendLiteral('-').appendValue(MONTH_OF_YEAR) in test_parseDefaulting_yearOptionalMonthOptionalDay()
123 .optionalStart().appendLiteral('-').appendValue(DAY_OF_MONTH) in test_parseDefaulting_yearOptionalMonthOptionalDay()
140 builder.appendValue(null); in test_appendValue_1arg_null()
146 builder.appendValue(null, 3); in test_appendValue_2arg_null()
151 builder.appendValue(DAY_OF_MONTH, 0); in test_appendValue_2arg_widthTooSmall()
156 builder.appendValue(DAY_OF_MONTH, 20); in test_appendValue_2arg_widthTooBig()
162 builder.appendValue(null, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg_nullField()
167 builder.appendValue(DAY_OF_MONTH, 0, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooSmall()
172 builder.appendValue(DAY_OF_MONTH, 20, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooBig()
[all …]
DTCKDateTimeParseResolver.java154 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneNoChange()
192 .appendValue(field1).appendLiteral(' ') in test_resolveTwoNoChange()
193 .appendValue(field2).toFormatter(); in test_resolveTwoNoChange()
223 .appendValue(field1).appendLiteral(' ') in test_resolveThreeNoChange()
224 .appendValue(field2).appendLiteral(' ') in test_resolveThreeNoChange()
225 .appendValue(field3).toFormatter(); in test_resolveThreeNoChange()
259 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToField()
285 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToDate()
310 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToTime()
340 .appendValue(field1).appendLiteral(' ') in test_resolveTwoToField()
[all …]
DTCKPadPrinterParser.java131 builder.padNext(3, '#').appendValue(MONTH_OF_YEAR, 1, 3, SignStyle.NORMAL); in test_parseStrict()
172 builder.parseLenient().padNext(3, '#').appendValue(MONTH_OF_YEAR, 1, 3, SignStyle.NORMAL); in test_parseLenient()
196 builder.padNext(3, '-').appendValue(MONTH_OF_YEAR, 1, 2, SignStyle.NORMAL); in test_parse_decoratedStartsWithPad_number()
207 builder.padNext(4, '-').optionalStart().appendValue(DAY_OF_MONTH).optionalEnd(); in test_parse_decoratedEmpty_strict()
216 … builder.parseLenient().padNext(4, '-').optionalStart().appendValue(DAY_OF_MONTH).optionalEnd(); in test_parse_decoratedEmpty_lenient()
DTCKDateTimeFormatter.java130 .appendValue(DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE) in setUp()
176 .appendValue(YEAR).appendLiteral('-').appendValue(MONTH_OF_YEAR).appendLiteral('-') in test_resolverFields_selectOneDateResolveYMD()
177 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYMD()
192 .appendValue(YEAR).appendLiteral('-').appendValue(MONTH_OF_YEAR).appendLiteral('-') in test_resolverFields_selectOneDateResolveYD()
193 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYD()
211 .appendValue(YEAR).appendLiteral('-').appendValue(DAY_OF_YEAR).appendLiteral('-') in test_resolverFields_ignoreCrossCheck()
212 .appendValue(DAY_OF_WEEK).toFormatter(); in test_resolverFields_ignoreCrossCheck()
227 .appendValue(YEAR).toFormatter().withResolverFields(); in test_resolverFields_emptyList()
235 .appendValue(YEAR).toFormatter().withResolverFields(YEAR); in test_resolverFields_listOfOneMatching()
243 .appendValue(YEAR).toFormatter().withResolverFields(MONTH_OF_YEAR); in test_resolverFields_listOfOneNotMatching()
[all …]
DTCKResolverStyle.java112 builder.appendValue(ChronoField.YEAR_OF_ERA); in test_resolverStyle()
114 builder.appendValue(ChronoField.MONTH_OF_YEAR); in test_resolverStyle()
116 builder.appendValue(ChronoField.DAY_OF_MONTH); in test_resolverStyle()
DTCKSignStyle.java121 DateTimeFormatter formatter = builder.appendValue(ChronoField.YEAR, 2, 4, style) in test_signStyle()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKIsoFields.java154 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters()
155 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters()
156 .appendValue(IsoFields.DAY_OF_QUARTER) in test_parse_quarters()
165 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters_SMART()
166 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters_SMART()
167 .appendValue(IsoFields.DAY_OF_QUARTER) in test_parse_quarters_SMART()
176 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters_LENIENT()
177 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters_LENIENT()
178 .appendValue(IsoFields.DAY_OF_QUARTER) in test_parse_quarters_LENIENT()
211 .appendValue(YEAR).appendLiteral(':') in test_parse_parseLenientQuarter_STRICT()
[all …]
DTCKWeekFields.java386 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom()
387 .appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_parse_resolve_localizedWom()
388 .appendValue(womField).appendLiteral(':') in test_parse_resolve_localizedWom()
389 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(SMART); in test_parse_resolve_localizedWom()
407 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
408 .appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
409 .appendValue(womField).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
410 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT); in test_parse_resolve_localizedWom_lenient()
428 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_strict()
429 .appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_strict()
[all …]
DTCKJulianFields.java144 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field) in test_samples_parse_STRICT()
152 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field) in test_samples_parse_SMART()
160 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field) in test_samples_parse_LENIENT()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatterBuilder.java146 builder.appendValue(DAY_OF_MONTH); in test_appendValue_1arg()
153 builder.appendValue(null); in test_appendValue_1arg_null()
159 builder.appendValue(DAY_OF_MONTH, 3); in test_appendValue_2arg()
166 builder.appendValue(null, 3); in test_appendValue_2arg_null()
171 builder.appendValue(DAY_OF_MONTH, 0); in test_appendValue_2arg_widthTooSmall()
176 builder.appendValue(DAY_OF_MONTH, 20); in test_appendValue_2arg_widthTooBig()
182 builder.appendValue(DAY_OF_MONTH, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg()
189 builder.appendValue(null, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg_nullField()
194 builder.appendValue(DAY_OF_MONTH, 0, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooSmall()
199 builder.appendValue(DAY_OF_MONTH, 20, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooBig()
[all …]
DTestDateTimeParsing.java108 .appendInstant().appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
110 .appendValue(INSTANT_SECONDS).toFormatter();
113 .appendValue(INSTANT_SECONDS).appendLiteral('.').appendValue(NANO_OF_SECOND).toFormatter();
116 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
DTestNumberParser.java172 …dtf = builder.appendValue(DAY_OF_YEAR, subsequentWidth).toFormatter(locale).withDecimalStyle(decim… in test_parse_fresh()
192 …dtf = builder.appendValue(DAY_OF_YEAR, subsequentWidth).toFormatter(locale).withDecimalStyle(decim… in test_parse_textField()
546 .appendValue(MONTH_OF_YEAR, 1, 2, SignStyle.NORMAL) in test_parseDigitsAdjacentLenient()
547 .appendValue(DAY_OF_MONTH, 2).toFormatter(locale).withDecimalStyle(decimalStyle); in test_parseDigitsAdjacentLenient()
DAbstractTestPrinterParser.java137 …return builder.appendValue(field, minWidth, maxWidth, signStyle).toFormatter(locale).withDecimalSt… in getFormatter()
DTestDateTimeFormatter.java103 .appendValue(DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE) in test_withLocale_same()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java705 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
707 .appendValue(MONTH_OF_YEAR, 2)
709 .appendValue(DAY_OF_MONTH, 2)
804 .appendValue(HOUR_OF_DAY, 2)
806 .appendValue(MINUTE_OF_HOUR, 2)
809 .appendValue(SECOND_OF_MINUTE, 2)
1040 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
1042 .appendValue(DAY_OF_YEAR, 3)
1084 .appendValue(IsoFields.WEEK_BASED_YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
1086 .appendValue(IsoFields.WEEK_OF_WEEK_BASED_YEAR, 2)
[all …]
DDateTimeFormatterBuilder.java402 public DateTimeFormatterBuilder appendValue(TemporalField field) { in appendValue() method in DateTimeFormatterBuilder
404 appendValue(new NumberPrinterParser(field, 1, 19, SignStyle.NORMAL)); in appendValue()
456 public DateTimeFormatterBuilder appendValue(TemporalField field, int width) { in appendValue() method in DateTimeFormatterBuilder
462 appendValue(pp); in appendValue()
497 public DateTimeFormatterBuilder appendValue( in appendValue() method in DateTimeFormatterBuilder
500 return appendValue(field, maxWidth); in appendValue()
515 appendValue(pp); in appendValue()
562 appendValue(pp); in appendValueReduced()
623 appendValue(pp); in appendValueReduced()
641 private DateTimeFormatterBuilder appendValue(NumberPrinterParser pp) { in appendValue() method in DateTimeFormatterBuilder
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeBuilderCombinations.java135 dtfb.appendValue(field1).appendLiteral('-'); in test_derive()
138 dtfb.appendValue(field2).appendLiteral('-'); in test_derive()
142 dtfb.appendValue(field3).appendLiteral('-'); in test_derive()
146 dtfb.appendValue(field4).appendLiteral('-'); in test_derive()
201 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_normalized()
/libcore/ojluni/src/main/java/java/time/
DMonthDay.java133 .appendValue(MONTH_OF_YEAR, 2)
135 .appendValue(DAY_OF_MONTH, 2)
DYearMonth.java136 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
138 .appendValue(MONTH_OF_YEAR, 2)
DYear.java149 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
/libcore/ojluni/src/main/java/java/util/
DCalendar.java3345 appendValue(buffer, "time", isTimeSet, time); in toString()
3350 appendValue(buffer, ",firstDayOfWeek", true, (long) firstDayOfWeek); in toString()
3351 appendValue(buffer, ",minimalDaysInFirstWeek", true, (long) minimalDaysInFirstWeek); in toString()
3354 appendValue(buffer, FIELD_NAME[i], isSet(i), (long) fields[i]); in toString()
3362 private static void appendValue(StringBuilder sb, String item, boolean valid, long value) { in appendValue() method in Calendar
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java362 private static void appendValue( in appendValue() method in Calendar
/libcore/api/
Dcurrent.txt11762 …method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalFie…
11763 …method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalFie…
11764 …method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalFie…