Home
last modified time | relevance | path

Searched refs:checkValidIntValue (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java489 yoe = range(YEAR_OF_ERA).checkValidIntValue(yoeLong, YEAR_OF_ERA); in resolveYearOfEra()
494 Era eraObj = eraOf(range(ERA).checkValidIntValue(eraLong, ERA)); in resolveYearOfEra()
498 int year = range(YEAR).checkValidIntValue(fieldValues.get(YEAR), YEAR); in resolveYearOfEra()
522 int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); in resolveYMD()
528 …int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR… in resolveYMD()
530 int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); in resolveYMD()
542 int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); in resolveYD()
547 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD()
552 int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); in resolveYMAA()
559 …int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR… in resolveYMAA()
[all …]
DJapaneseChronology.java443 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()
DIsoChronology.java638 int y = YEAR.checkValidIntValue(fieldValues.remove(YEAR)); in resolveYMD()
644 int moy = MONTH_OF_YEAR.checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR)); in resolveYMD()
645 int dom = DAY_OF_MONTH.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH)); in resolveYMD()
DMinguoDate.java318 … int nvalue = getChronology().range(chronoField).checkValidIntValue(newValue, chronoField); in with()
DThaiBuddhistDate.java318 … int nvalue = getChronology().range(chronoField).checkValidIntValue(newValue, chronoField); in with()
DChronoZonedDateTimeImpl.java290 … ZoneOffset offset = ZoneOffset.ofTotalSeconds(chronoField.checkValidIntValue(newValue)); in with()
DChronoLocalDateTimeImpl.java260 return range(field).checkValidIntValue(getLong(field), field); in get()
DJapaneseDate.java521 … int nvalue = getChronology().range(chronoField).checkValidIntValue(newValue, chronoField); in with()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeValueRange.java238 assertEquals(test.checkValidIntValue(sMin, null), sMin); in test_of_checkValidValue()
239 assertEquals(test.checkValidIntValue(lMin, null), lMin); in test_of_checkValidValue()
240 assertEquals(test.checkValidIntValue(sMax, null), sMax); in test_of_checkValidValue()
241 assertEquals(test.checkValidIntValue(lMax, null), lMax); in test_of_checkValidValue()
247 test.checkValidIntValue(sMin-1, null); in test_of_checkValidValueMinException()
253 test.checkValidIntValue(lMax+1, null); in test_of_checkValidValueMaxException()
259 test.checkValidIntValue(0, (ChronoField)null); in test_checkValidValueUnsupported_long_long()
265 test.checkValidIntValue(Integer.MAX_VALUE + 2L, (ChronoField)null); in test_checkValidValueInvalid_long_long()
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java921 int newVal = range.checkValidIntValue(newValue, this); // lenient check range in adjustInto()
948 … final int checkedValue = range.checkValidIntValue(value, this); // no leniency as too complex in resolve()
960 int isoDow = DAY_OF_WEEK.checkValidIntValue(fieldValues.get(DAY_OF_WEEK)); in resolve()
966 int year = YEAR.checkValidIntValue(fieldValues.get(YEAR)); // validate in resolve()
991 int monthValid = MONTH_OF_YEAR.checkValidIntValue(month); // validate in resolveWoM()
993 int womInt = range.checkValidIntValue(wom, this); // validate in resolveWoM()
1016 int womInt = range.checkValidIntValue(woy, this); // validate in resolveWoY()
1032 int yowby = weekDef.weekBasedYear.range().checkValidIntValue( in resolveWBY()
1041 int wowby = weekDef.weekOfWeekBasedYear.range().checkValidIntValue( in resolveWBY()
DIsoFields.java357 int y = YEAR.checkValidIntValue(yearLong); // always validate in resolve()
365 … int qoy = QUARTER_OF_YEAR.range().checkValidIntValue(qoyLong, QUARTER_OF_YEAR); // validated in resolve()
496 …int wby = WEEK_BASED_YEAR.range().checkValidIntValue(wbyLong, WEEK_BASED_YEAR); // always validate in resolve()
511 int dow = DAY_OF_WEEK.checkValidIntValue(dowLong); // validated in resolve()
567 int newWby = range().checkValidIntValue(newValue, WEEK_BASED_YEAR); // strict check in adjustInto()
DChronoField.java781 public int checkValidIntValue(long value) { in checkValidIntValue() method in ChronoField
782 return range().checkValidIntValue(value, this); in checkValidIntValue()
DValueRange.java336 public int checkValidIntValue(long value, TemporalField field) { in checkValidIntValue() method in ValueRange
/libcore/ojluni/src/main/java/java/time/
DYearMonth.java453 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()
DYear.java464 return range(field).checkValidIntValue(getLong(field), field); in get()
729 return of(YEAR.checkValidIntValue(year + yearsToAdd)); // overflow safe in plusYears()
DLocalDate.java366 int year = YEAR.checkValidIntValue(yearEst); in ofEpochDay()
1297 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears()
1327 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths()
DMonthDay.java412 return range(field).checkValidIntValue(getLong(field), field); in get()
DZoneOffset.java591 return range(field).checkValidIntValue(getLong(field), field);
DOffsetTime.java726 return with(time, ZoneOffset.ofTotalSeconds(f.checkValidIntValue(newValue))); in with()
DInstant.java562 return range(field).checkValidIntValue(field.getFrom(this), field); in get()
DDuration.java658 NANO_OF_SECOND.checkValidIntValue(nanoOfSecond); in withNanos()
DOffsetDateTime.java967 … return with(dateTime, ZoneOffset.ofTotalSeconds(chronoField.checkValidIntValue(newValue))); in with()
DZonedDateTime.java1301 … ZoneOffset offset = ZoneOffset.ofTotalSeconds(chronoField.checkValidIntValue(newValue)); in with()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java604 int mohVal = MINUTE_OF_HOUR.checkValidIntValue(moh); in resolveTime()
605 int nosVal = NANO_OF_SECOND.checkValidIntValue(nos); in resolveTime()
610 int hodVal = HOUR_OF_DAY.checkValidIntValue(hod); in resolveTime()
611 int somVal = SECOND_OF_MINUTE.checkValidIntValue(som); in resolveTime()
DDateTimeFormatterBuilder.java3503 int inNano = NANO_OF_SECOND.checkValidIntValue(inNanos != null ? inNanos : 0); in format()

12