Home
last modified time | relevance | path

Searched refs:WEEK_BASED_YEAR (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java253 public static final TemporalField WEEK_BASED_YEAR = Field.WEEK_BASED_YEAR; field in IsoFields
469 Long wbyLong = fieldValues.get(WEEK_BASED_YEAR); in resolve()
474 …int wby = WEEK_BASED_YEAR.range().checkValidIntValue(wbyLong, WEEK_BASED_YEAR); // always validate in resolve()
500 fieldValues.remove(WEEK_BASED_YEAR); in resolve()
509 WEEK_BASED_YEAR { enumConstant
539 int newWby = range().checkValidIntValue(newValue, WEEK_BASED_YEAR); // strict check in adjustInto()
693 return (R) temporal.with(WEEK_BASED_YEAR, in addTo()
694 Math.addExact(temporal.get(WEEK_BASED_YEAR), amount)); in addTo()
711 return Math.subtractExact(temporal2Exclusive.getLong(WEEK_BASED_YEAR), in between()
712 temporal1Inclusive.getLong(WEEK_BASED_YEAR)); in between()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKIsoFields.java338 assertEquals(IsoFields.WEEK_BASED_YEAR.getFrom(date), wby); in test_WBY()
339 assertEquals(date.get(IsoFields.WEEK_BASED_YEAR), wby); in test_WBY()
343 assertEquals(IsoFields.WEEK_BASED_YEAR.isDateBased(), true); in test_WBY_basics()
344 assertEquals(IsoFields.WEEK_BASED_YEAR.isTimeBased(), false); in test_WBY_basics()
353 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral('-') in test_parse_weeks_STRICT()
364 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral('-') in test_parse_weeks_SMART()
375 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral('-') in test_parse_weeks_LENIENT()
403 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral(':') in test_parse_parseLenientWeek_STRICT()
413 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral(':') in test_parse_parseLenientWeek_SMART()
433 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral(':') in test_parse_parseLenientWeek_LENIENT()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java54 {IsoFields.WEEK_OF_WEEK_BASED_YEAR, IsoFields.WEEK_BASED_YEAR}, in data_Fields()
121 assertEquals(IsoFields.WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WBY_isSupportedBy_ISO()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java382 return field == IsoFields.WEEK_BASED_YEAR; in test_format_withChronology_nonChronoFieldMapLink()
386 if (field == IsoFields.WEEK_BASED_YEAR) { in test_format_withChronology_nonChronoFieldMapLink()
393 .appendValue(IsoFields.WEEK_BASED_YEAR, 4) in test_format_withChronology_nonChronoFieldMapLink()
DTCKDateTimeFormatters.java1171 assertEquals(parsed.getLong(IsoFields.WEEK_BASED_YEAR), 123456L); in test_parse_weekDate_largeYear()
1425 fields.put(IsoFields.WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_BASED_YEAR)); in setFields()
1437 fields.put(IsoFields.WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_BASED_YEAR)); in setFields()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java1084 .appendValue(IsoFields.WEEK_BASED_YEAR, 4, 10, SignStyle.EXCEEDS_PAD)