/libcore/ojluni/src/main/java/java/time/chrono/ |
D | AbstractChronology.java | 519 yoe = range(YEAR_OF_ERA).checkValidIntValue(yoeLong, YEAR_OF_ERA); in resolveYearOfEra() 524 Era eraObj = eraOf(range(ERA).checkValidIntValue(eraLong, ERA)); in resolveYearOfEra() 528 int year = range(YEAR).checkValidIntValue(fieldValues.get(YEAR), YEAR); in resolveYearOfEra() 552 int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); in resolveYMD() 558 …int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR… in resolveYMD() 560 int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); in resolveYMD() 572 int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); in resolveYD() 577 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD() 582 int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); in resolveYMAA() 589 …int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR… in resolveYMAA() [all …]
|
D | JapaneseChronology.java | 443 era = eraOf(range(ERA).checkValidIntValue(eraLong, ERA)); // always validated in resolveYearOfEra() 448 yoe = range(YEAR_OF_ERA).checkValidIntValue(yoeLong, YEAR_OF_ERA); // always validated in resolveYearOfEra() 481 …int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR… in resolveYMD() 482 … int dom = range(DAY_OF_MONTH).checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); in resolveYMD() 513 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD()
|
D | IsoChronology.java | 544 int y = YEAR.checkValidIntValue(fieldValues.remove(YEAR)); in resolveYMD() 550 int moy = MONTH_OF_YEAR.checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR)); in resolveYMD() 551 int dom = DAY_OF_MONTH.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH)); in resolveYMD()
|
D | ThaiBuddhistDate.java | 318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with()
|
D | MinguoDate.java | 318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with()
|
D | ChronoZonedDateTimeImpl.java | 290 ZoneOffset offset = ZoneOffset.ofTotalSeconds(f.checkValidIntValue(newValue)); in with()
|
D | ChronoLocalDateTimeImpl.java | 262 return range(field).checkValidIntValue(getLong(field), field); in get()
|
D | JapaneseDate.java | 525 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeValueRange.java | 227 assertEquals(test.checkValidIntValue(sMin, null), sMin); in test_of_checkValidValue() 228 assertEquals(test.checkValidIntValue(lMin, null), lMin); in test_of_checkValidValue() 229 assertEquals(test.checkValidIntValue(sMax, null), sMax); in test_of_checkValidValue() 230 assertEquals(test.checkValidIntValue(lMax, null), lMax); in test_of_checkValidValue() 236 test.checkValidIntValue(sMin-1, null); in test_of_checkValidValueMinException() 242 test.checkValidIntValue(lMax+1, null); in test_of_checkValidValueMaxException() 248 test.checkValidIntValue(0, (ChronoField)null); in test_checkValidValueUnsupported_long_long() 254 test.checkValidIntValue(Integer.MAX_VALUE + 2L, (ChronoField)null); in test_checkValidValueInvalid_long_long()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 895 int newVal = range.checkValidIntValue(newValue, this); // lenient check range in adjustInto() 922 … final int checkedValue = range.checkValidIntValue(value, this); // no leniency as too complex in resolve() 934 int isoDow = DAY_OF_WEEK.checkValidIntValue(fieldValues.get(DAY_OF_WEEK)); in resolve() 940 int year = YEAR.checkValidIntValue(fieldValues.get(YEAR)); // validate in resolve() 965 int monthValid = MONTH_OF_YEAR.checkValidIntValue(month); // validate in resolveWoM() 967 int womInt = range.checkValidIntValue(wom, this); // validate in resolveWoM() 990 int womInt = range.checkValidIntValue(woy, this); // validate in resolveWoY() 1006 int yowby = weekDef.weekBasedYear.range().checkValidIntValue( in resolveWBY() 1015 int wowby = weekDef.weekOfWeekBasedYear.range().checkValidIntValue( in resolveWBY()
|
D | IsoFields.java | 350 int y = YEAR.checkValidIntValue(yearLong); // always validate in resolve() 358 … int qoy = QUARTER_OF_YEAR.range().checkValidIntValue(qoyLong, QUARTER_OF_YEAR); // validated in resolve() 474 …int wby = WEEK_BASED_YEAR.range().checkValidIntValue(wbyLong, WEEK_BASED_YEAR); // always validate in resolve() 489 int dow = DAY_OF_WEEK.checkValidIntValue(dowLong); // validated in resolve() 539 int newWby = range().checkValidIntValue(newValue, WEEK_BASED_YEAR); // strict check in adjustInto()
|
D | ChronoField.java | 748 public int checkValidIntValue(long value) { in checkValidIntValue() method in ChronoField 749 return range().checkValidIntValue(value, this); in checkValidIntValue()
|
D | ValueRange.java | 328 public int checkValidIntValue(long value, TemporalField field) { in checkValidIntValue() method in ValueRange
|
/libcore/ojluni/src/main/java/java/time/ |
D | YearMonth.java | 452 return range(field).checkValidIntValue(getLong(field), field); in get() 827 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears() 846 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths()
|
D | Year.java | 463 return range(field).checkValidIntValue(getLong(field), field); in get() 729 return of(YEAR.checkValidIntValue(year + yearsToAdd)); // overflow safe in plusYears()
|
D | Instant.java | 558 case INSTANT_SECONDS: INSTANT_SECONDS.checkValidIntValue(seconds); in get() 562 return range(field).checkValidIntValue(field.getFrom(this), field); in get()
|
D | LocalDate.java | 335 int year = YEAR.checkValidIntValue(yearEst); in ofEpochDay() 1271 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears() 1301 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths()
|
D | MonthDay.java | 411 return range(field).checkValidIntValue(getLong(field), field); in get()
|
D | ZoneOffset.java | 590 return range(field).checkValidIntValue(getLong(field), field);
|
D | Duration.java | 657 NANO_OF_SECOND.checkValidIntValue(nanoOfSecond); in withNanos()
|
D | OffsetDateTime.java | 967 … return with(dateTime, ZoneOffset.ofTotalSeconds(f.checkValidIntValue(newValue))); in with()
|