Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatterBuilder.java156 builder.appendValue(DAY_OF_MONTH); in test_appendValue_1arg()
163 builder.appendValue(null); in test_appendValue_1arg_null()
169 builder.appendValue(DAY_OF_MONTH, 3); in test_appendValue_2arg()
176 builder.appendValue(null, 3); in test_appendValue_2arg_null()
181 builder.appendValue(DAY_OF_MONTH, 0); in test_appendValue_2arg_widthTooSmall()
186 builder.appendValue(DAY_OF_MONTH, 20); in test_appendValue_2arg_widthTooBig()
192 builder.appendValue(DAY_OF_MONTH, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg()
199 builder.appendValue(null, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg_nullField()
204 builder.appendValue(DAY_OF_MONTH, 0, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooSmall()
209 builder.appendValue(DAY_OF_MONTH, 20, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooBig()
[all …]
DTestDateTimeParsing.java115 .appendInstant().appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
117 .appendValue(INSTANT_SECONDS).toFormatter();
120 .appendValue(INSTANT_SECONDS).appendLiteral('.').appendValue(NANO_OF_SECOND).toFormatter();
123 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
225 .appendValue(HOUR_OF_AMPM,2) in test_validateHourOfAmPm()
DTestTextParserWithLocale.java209 .appendValue(ChronoField.YEAR_OF_ERA, 1, 9, SignStyle.NORMAL)
211 .appendValue(ChronoField.MONTH_OF_YEAR, 1, 2, SignStyle.NEVER)
213 .appendValue(ChronoField.DAY_OF_MONTH, 1, 2, SignStyle.NEVER)
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.java108 .appendValue(DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE) in test_withLocale_same()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKIsoFields.java157 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters()
158 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters()
159 .appendValue(IsoFields.DAY_OF_QUARTER) in test_parse_quarters()
168 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters_SMART()
169 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters_SMART()
170 .appendValue(IsoFields.DAY_OF_QUARTER) in test_parse_quarters_SMART()
179 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters_LENIENT()
180 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters_LENIENT()
181 .appendValue(IsoFields.DAY_OF_QUARTER) in test_parse_quarters_LENIENT()
214 .appendValue(YEAR).appendLiteral(':') in test_parse_parseLenientQuarter_STRICT()
[all …]
DTCKWeekFields.java388 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom()
389 .appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_parse_resolve_localizedWom()
390 .appendValue(womField).appendLiteral(':') in test_parse_resolve_localizedWom()
391 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(SMART); in test_parse_resolve_localizedWom()
409 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
410 .appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
411 .appendValue(womField).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
412 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT); in test_parse_resolve_localizedWom_lenient()
430 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_strict()
431 .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/tck/java/time/format/
DTCKDateTimeFormatterBuilder.java129 .appendValue(YEAR) in test_parseDefaulting_yearOptionalMonthOptionalDay()
130 .optionalStart().appendLiteral('-').appendValue(MONTH_OF_YEAR) in test_parseDefaulting_yearOptionalMonthOptionalDay()
131 .optionalStart().appendLiteral('-').appendValue(DAY_OF_MONTH) in test_parseDefaulting_yearOptionalMonthOptionalDay()
148 builder.appendValue(null); in test_appendValue_1arg_null()
154 builder.appendValue(null, 3); in test_appendValue_2arg_null()
159 builder.appendValue(DAY_OF_MONTH, 0); in test_appendValue_2arg_widthTooSmall()
164 builder.appendValue(DAY_OF_MONTH, 20); in test_appendValue_2arg_widthTooBig()
170 builder.appendValue(null, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg_nullField()
175 builder.appendValue(DAY_OF_MONTH, 0, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooSmall()
180 builder.appendValue(DAY_OF_MONTH, 20, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooBig()
[all …]
DTCKDateTimeParseResolver.java157 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneNoChange()
195 .appendValue(field1).appendLiteral(' ') in test_resolveTwoNoChange()
196 .appendValue(field2).toFormatter(); in test_resolveTwoNoChange()
226 .appendValue(field1).appendLiteral(' ') in test_resolveThreeNoChange()
227 .appendValue(field2).appendLiteral(' ') in test_resolveThreeNoChange()
228 .appendValue(field3).toFormatter(); in test_resolveThreeNoChange()
262 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToField()
288 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToDate()
313 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToTime()
343 .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/main/java/java/time/format/
DDateTimeFormatter.java745 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
747 .appendValue(MONTH_OF_YEAR, 2)
749 .appendValue(DAY_OF_MONTH, 2)
844 .appendValue(HOUR_OF_DAY, 2)
846 .appendValue(MINUTE_OF_HOUR, 2)
849 .appendValue(SECOND_OF_MINUTE, 2)
1083 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
1085 .appendValue(DAY_OF_YEAR, 3)
1127 .appendValue(IsoFields.WEEK_BASED_YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
1129 .appendValue(IsoFields.WEEK_OF_WEEK_BASED_YEAR, 2)
[all …]
DDateTimeFormatterBuilder.java414 public DateTimeFormatterBuilder appendValue(TemporalField field) { in appendValue() method in DateTimeFormatterBuilder
416 appendValue(new NumberPrinterParser(field, 1, 19, SignStyle.NORMAL)); in appendValue()
468 public DateTimeFormatterBuilder appendValue(TemporalField field, int width) { in appendValue() method in DateTimeFormatterBuilder
474 appendValue(pp); in appendValue()
509 public DateTimeFormatterBuilder appendValue( in appendValue() method in DateTimeFormatterBuilder
512 return appendValue(field, maxWidth); in appendValue()
527 appendValue(pp); in appendValue()
574 appendValue(pp); in appendValueReduced()
635 appendValue(pp); in appendValueReduced()
653 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.java134 .appendValue(MONTH_OF_YEAR, 2)
136 .appendValue(DAY_OF_MONTH, 2)
DYearMonth.java137 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
139 .appendValue(MONTH_OF_YEAR, 2)
DYear.java151 .appendValue(YEAR, 1, 10, SignStyle.NORMAL)
/libcore/ojluni/src/main/java/java/util/
DCalendar.java3425 appendValue(buffer, "time", isTimeSet, time); in toString()
3430 appendValue(buffer, ",firstDayOfWeek", true, (long) firstDayOfWeek); in toString()
3431 appendValue(buffer, ",minimalDaysInFirstWeek", true, (long) minimalDaysInFirstWeek); in toString()
3434 appendValue(buffer, FIELD_NAME[i], isSet(i), (long) fields[i]); in toString()
3442 private static void appendValue(StringBuilder sb, String item, boolean valid, long value) { in appendValue() method
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java362 private static void appendValue( in appendValue() method in Calendar
/libcore/api/
Dcurrent.txt12821 …method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalFie…
12822 …method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalFie…
12823 …method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalFie…