Home
last modified time | relevance | path

Searched refs:ALIGNED_WEEK_OF_MONTH (Results 1 – 25 of 34) sorted by relevance

12

/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java66 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
474 if (fieldValues.containsKey(ALIGNED_WEEK_OF_MONTH)) { in resolveDate()
585 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_MONTH), 1); in resolveYMAA()
590 …int aw = range(ALIGNED_WEEK_OF_MONTH).checkValidIntValue(fieldValues.remove(ALIGNED_WEEK_OF_MONTH)… in resolveYMAA()
603 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_MONTH), 1); in resolveYMAD()
608 …int aw = range(ALIGNED_WEEK_OF_MONTH).checkValidIntValue(fieldValues.remove(ALIGNED_WEEK_OF_MONTH)… in resolveYMAD()
DHijrahDate.java61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
349 case ALIGNED_WEEK_OF_MONTH: return ValueRange.of(1, 5); // TODO in range()
370 case ALIGNED_WEEK_OF_MONTH: return ((dayOfMonth - 1) / 7) + 1; in getLong()
401 … case ALIGNED_WEEK_OF_MONTH: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_MONTH)) * 7); in with()
DJapaneseDate.java61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
432 field == ALIGNED_WEEK_OF_MONTH || field == ALIGNED_WEEK_OF_YEAR) { in isSupported()
476 case ALIGNED_WEEK_OF_MONTH: in getLong()
DMinguoDate.java260 case ALIGNED_WEEK_OF_MONTH: in range()
DThaiBuddhistDate.java260 case ALIGNED_WEEK_OF_MONTH: in range()
DJapaneseChronology.java404 case ALIGNED_WEEK_OF_MONTH: in range()
DHijrahChronology.java589 case ALIGNED_WEEK_OF_MONTH: in range()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java60 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
198 case ALIGNED_WEEK_OF_MONTH: return ValueRange.of(1, month == 13 ? 1 : 5); in range()
220 case ALIGNED_WEEK_OF_MONTH: return ((day - 1) / 7) + 1; in getLong()
245 … case ALIGNED_WEEK_OF_MONTH: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_MONTH)) * 7); in with()
DCopticChronology.java234 case ALIGNED_WEEK_OF_MONTH: return ValueRange.of(1, 1, 5); in range()
DTCKIsoChronology.java629 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_lenient()
641 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_smart()
662 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_strict()
DTCKThaiBuddhistChronology.java880 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_lenient()
892 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_smart()
913 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_strict()
DTCKMinguoChronology.java904 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_lenient()
916 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_smart()
937 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_strict()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeBuilderCombinations.java64 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
177 {ALIGNED_WEEK_OF_MONTH, 4, ALIGNED_WEEK_OF_MONTH, 4}, in data_normalized()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
114 {ALIGNED_WEEK_OF_MONTH}, in data_fieldBased()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DThaiBuddhistChronologyTest.java99 assertEquals(LocalDate.from(date).range(ChronoField.ALIGNED_WEEK_OF_MONTH), in test_ThaiBuddhistDate_range()
100 date.range(ChronoField.ALIGNED_WEEK_OF_MONTH)); in test_ThaiBuddhistDate_range()
DMinguoChronologyTest.java97 assertEquals(LocalDate.from(date).range(ChronoField.ALIGNED_WEEK_OF_MONTH), in test_MinguoDate_range()
98 date.range(ChronoField.ALIGNED_WEEK_OF_MONTH)); in test_MinguoDate_range()
DJapaneseChronologyTest.java87 assertEquals(false, date.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java67 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
575 …case ALIGNED_WEEK_OF_MONTH: return ValueRange.of(1, getMonth() == Month.FEBRUARY && isLeapYear() =… in range()
666 case ALIGNED_WEEK_OF_MONTH: return ((day - 1) / 7) + 1; in get0()
1025 … case ALIGNED_WEEK_OF_MONTH: return plusWeeks(newValue - getLong(ALIGNED_WEEK_OF_MONTH)); in with()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
163 {ALIGNED_WEEK_OF_MONTH, true, false}, in data_fieldBased()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java97 ChronoField.ALIGNED_WEEK_OF_MONTH, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java67 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
171 {YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5}, in data_resolveTwoNoChange()
180 {MONTH_OF_YEAR, 5, ALIGNED_WEEK_OF_MONTH, 5}, in data_resolveTwoNoChange()
210 {YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5, DAY_OF_MONTH, 5}, in data_resolveThreeNoChange()
521 …{YEAR, 2012, MONTH_OF_YEAR, 2, ALIGNED_WEEK_OF_MONTH, 1, ALIGNED_DAY_OF_WEEK_IN_MONTH, 1, LocalDat… in data_resolveFourToDate()
522 …{YEAR, 2012, MONTH_OF_YEAR, 2, ALIGNED_WEEK_OF_MONTH, 1, DAY_OF_WEEK, 3, LocalDate.of(2012, 2, 1)}, in data_resolveFourToDate()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java438 ALIGNED_WEEK_OF_MONTH("AlignedWeekOfMonth", WEEKS, MONTHS, ValueRange.of(1, 4, 5)), enumConstant
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDayOfWeek.java189 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH), false); in test_isSupported_TemporalField()
DTCKMonth.java181 assertEquals(Month.AUGUST.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH), false); in test_isSupported_TemporalField()
DTCKOffsetDateTime.java65 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH;
201 ALIGNED_WEEK_OF_MONTH, in validFields()
560 …sertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH), true);

12