Home
last modified time | relevance | path

Searched refs:getMaximum (Results 1 – 25 of 36) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/time/chrono/
DThaiBuddhistChronologyTest.java48 ChronoField.PROLEPTIC_MONTH.range().getMaximum() + YEARS_AHEAD * 12L); in test_range()
55 ChronoField.YEAR.range().getMaximum() + YEARS_AHEAD); in test_range()
60 ChronoField.YEAR.range().getMaximum() + YEARS_AHEAD); in test_range()
107 assertEquals(ValueRange.of(1, ChronoField.YEAR.range().getMaximum() + YEARS_AHEAD), in test_ThaiBuddhistDate_range_yeaOfEra()
DMinguoChronologyTest.java48 ChronoField.PROLEPTIC_MONTH.range().getMaximum() - YEARS_BEHIND * 12L); in test_range()
53 … expected = ValueRange.of(1, ChronoField.YEAR.range().getMaximum() - YEARS_BEHIND, in test_range()
59 ChronoField.YEAR.range().getMaximum() - YEARS_BEHIND); in test_range()
105 assertEquals(ValueRange.of(1, ChronoField.YEAR.range().getMaximum() - YEARS_BEHIND), in test_MinguoDate_range_yeaOfEra()
/libcore/ojluni/src/main/java/java/time/temporal/
DValueRange.java252 public long getMaximum() { in getMaximum() method in ValueRange
270 return getMinimum() >= Integer.MIN_VALUE && getMaximum() <= Integer.MAX_VALUE; in isIntValue()
282 return (value >= getMinimum() && value <= getMaximum()); in isValidValue()
DTemporalAdjusters.java189 return (temporal) -> temporal.with(DAY_OF_MONTH, temporal.range(DAY_OF_MONTH).getMaximum()); in lastDayOfMonth()
251 return (temporal) -> temporal.with(DAY_OF_YEAR, temporal.range(DAY_OF_YEAR).getMaximum()); in lastDayOfYear()
359 … Temporal temp = temporal.with(DAY_OF_MONTH, temporal.range(DAY_OF_MONTH).getMaximum()); in dayOfWeekInMonth()
DWeekFields.java819 int yearLen = (int)dayRange.getMaximum(); in localizedWeekBasedYear()
852 int yearLen = (int)dayRange.getMaximum(); in localizedWeekOfWeekBasedYear()
1117 computeWeek(offset, (int) fieldRange.getMaximum())); in rangeByWeek()
1142 int yearLen = (int)dayRange.getMaximum(); in rangeWeekOfWeekBasedYear()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKJapaneseEra.java117 assertEquals(era.range(ERA).getSmallestMaximum(), era.range(ERA).getMaximum()); in test_range()
118 assertEquals(era.range(ERA).getMaximum() >= 2, true); in test_range()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeValueRange.java98 assertEquals(test.getMaximum(), 12); in test_of_longlong()
108 assertEquals(test.getMaximum(), 123456789012345L); in test_of_longlong_big()
126 assertEquals(test.getMaximum(), 31); in test_of_longlonglong()
165 assertEquals(test.getMaximum(), lMax); in test_of_longlonglonglong()
/libcore/ojluni/src/main/java/java/time/chrono/
DMinguoChronology.java318 …return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE * 12L, range.getMaximum() - YEARS_DIFFE… in range()
322 …return ValueRange.of(1, range.getMaximum() - YEARS_DIFFERENCE, -range.getMinimum() + 1 + YEARS_DIF… in range()
326 …return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE, range.getMaximum() - YEARS_DIFFERENCE); in range()
DThaiBuddhistChronology.java354 …return ValueRange.of(range.getMinimum() + YEARS_DIFFERENCE * 12L, range.getMaximum() + YEARS_DIFFE… in range()
358 …n ValueRange.of(1, -(range.getMinimum() + YEARS_DIFFERENCE) + 1, range.getMaximum() + YEARS_DIFFER… in range()
362 …return ValueRange.of(range.getMinimum() + YEARS_DIFFERENCE, range.getMaximum() + YEARS_DIFFERENCE); in range()
DChronoLocalDateImpl.java402 if (range.getMaximum() != 12) { in monthsUntil()
DThaiBuddhistDate.java264 …pticYear() <= 0 ? -(range.getMinimum() + YEARS_DIFFERENCE) + 1 : range.getMaximum() + YEARS_DIFFER… in range()
DMinguoDate.java264 …lepticYear() <= 0 ? -range.getMinimum() + 1 + YEARS_DIFFERENCE : range.getMaximum() - YEARS_DIFFER… in range()
DChronoPeriodImpl.java251 return startRange.getMaximum() - startRange.getMinimum() + 1; in monthRange()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java127 assertEquals(year.getMaximum(), 1600, "Largest year"); in Test_UmmAlQuraChronoRange()
133 assertEquals(month.getMaximum(), 12, "Largest month"); in Test_UmmAlQuraChronoRange()
139 assertEquals(day.getMaximum(), 30, "Largest day"); in Test_UmmAlQuraChronoRange()
168 assertEquals(yearRange.getMaximum(), maxYear, "Maximum year for Hijrah chronology"); in Test_UmmAlQuraRanges()
173 assertEquals(monthRange.getMaximum(), maxMonth, "Maximum month for Hijrah chronology"); in Test_UmmAlQuraRanges()
177 assertEquals(daysRange.getMaximum(), maxChronoDay, "Maximum day for Hijrah chronology"); in Test_UmmAlQuraRanges()
183 assertEquals(yearRange.getMaximum(), maxYear, "Maximum year for Hijrah date"); in Test_UmmAlQuraRanges()
188 assertEquals(monthRange.getMaximum(), maxMonth, "Maximum month for HijrahDate"); in Test_UmmAlQuraRanges()
192 assertEquals(daysRange.getMaximum(), maxDay, "Maximum day for HijrahDate"); in Test_UmmAlQuraRanges()
216 (int)monthRange.getMaximum(), 1); in test_hijrahDateLimits()
[all …]
DTestJapaneseChronoImpl.java142 …assertEquals(jd.range(ChronoField.DAY_OF_YEAR).getMaximum(), cal.getActualMaximum(Calendar.DAY_OF_… in test_dayOfYearVsCalendar()
DTestIsoChronoImpl.java158 … int weeksInWeekBasedYear = (int)isoDate.range(weekDef.weekOfWeekBasedYear()).getMaximum(); in test_DayOfWeek_IsoChronology_vsCalendar()
DTestJapaneseChronology.java194 assertEquals(range.getMaximum(), maxLargest); in test_range()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java455 .getMaximum(Calendar.DAY_OF_MONTH)); in test_getMaximumI()
457 .getMaximum(Calendar.MONTH) == Calendar.DECEMBER); in test_getMaximumI()
459 .getMaximum(Calendar.HOUR_OF_DAY)); in test_getMaximumI()
461 11, gc.getMaximum(Calendar.HOUR)); in test_getMaximumI()
468 if (gc.getMaximum(i) != max[i]) { in test_getMaximumI()
470 values.add(new Integer(gc.getMaximum(i))); in test_getMaximumI()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java999 {NANO_OF_SECOND, time(0, 0, 0, 0), NANO_OF_SECOND.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1002 {NANO_OF_DAY, time(0, 0, 0, 0), NANO_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1005 {MICRO_OF_SECOND, time(0, 0, 0, 0), MICRO_OF_SECOND.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1008 {MICRO_OF_DAY, time(0, 0, 0, 0), MICRO_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1011 {MILLI_OF_SECOND, time(0, 0, 0, 0), MILLI_OF_SECOND.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1014 {MILLI_OF_DAY, time(0, 0, 0, 0), MILLI_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1017 {SECOND_OF_MINUTE, time(0, 0, 0, 0), SECOND_OF_MINUTE.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1020 {SECOND_OF_DAY, time(0, 0, 0, 0), SECOND_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1023 {MINUTE_OF_HOUR, time(0, 0, 0, 0), MINUTE_OF_HOUR.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
1026 {MINUTE_OF_DAY, time(0, 0, 0, 0), MINUTE_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DGeneralSubtree.java122 public int getMaximum() { in getMaximum() method in GeneralSubtree
DNameConstraintsExtension.java97 if (subtree.getMaximum() != -1) in calcMinMax()
107 if (subtree.getMaximum() != -1) in calcMinMax()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java285 assertEquals(rangeWOM.getMaximum(), lastWOM, in test_fieldRanges()
297 assertEquals(rangeWOY.getMaximum(), lastWOY, in test_fieldRanges()
341 assertEquals(range.getMaximum(), expectedWeeks, "Range incorrect"); in test_rangeWeekOfWeekBasedYear()
359 weekExpected = ((weekExpected - 1) % (int)range.getMaximum()) + 1; in test_withWeekOfWeekBasedYear()
371 weekExpected = Math.min(day.get(wowbyField), (int)range.getMaximum()); in test_withWeekOfWeekBasedYear()
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java571 int max = getMaximum(field); in roll()
642 if (year == getMaximum(YEAR)) { in roll()
758 if (year == getMaximum(YEAR)) { in roll()
1088 public int getMaximum(int field) { in getMaximum() method in JapaneseImperialCalendar
1145 return Math.min(LEAST_MAX_VALUES[YEAR], getMaximum(YEAR)); in getLeastMaximum()
1282 return getMaximum(field); in getActualMaximum()
1860 if (value < getMinimum(field) || value > getMaximum(field)) { in computeTime()
/libcore/ojluni/src/main/java/java/time/
DMonthDay.java626 … return temporal.with(DAY_OF_MONTH, Math.min(temporal.range(DAY_OF_MONTH).getMaximum(), day)); in adjustInto()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCalendar.annotated.java146 public abstract int getMaximum(int field); in getMaximum() method in Calendar

12