Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java519 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 …]
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.java544 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()
DThaiBuddhistDate.java318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with()
DMinguoDate.java318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with()
DChronoZonedDateTimeImpl.java290 ZoneOffset offset = ZoneOffset.ofTotalSeconds(f.checkValidIntValue(newValue)); in with()
DChronoLocalDateTimeImpl.java262 return range(field).checkValidIntValue(getLong(field), field); in get()
DJapaneseDate.java525 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeValueRange.java227 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/
DWeekFields.java895 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()
DIsoFields.java350 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()
DChronoField.java748 public int checkValidIntValue(long value) { in checkValidIntValue() method in ChronoField
749 return range().checkValidIntValue(value, this); in checkValidIntValue()
DValueRange.java328 public int checkValidIntValue(long value, TemporalField field) { in checkValidIntValue() method in ValueRange
/libcore/ojluni/src/main/java/java/time/
DYearMonth.java452 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.java463 return range(field).checkValidIntValue(getLong(field), field); in get()
729 return of(YEAR.checkValidIntValue(year + yearsToAdd)); // overflow safe in plusYears()
DInstant.java558 case INSTANT_SECONDS: INSTANT_SECONDS.checkValidIntValue(seconds); in get()
562 return range(field).checkValidIntValue(field.getFrom(this), field); in get()
DLocalDate.java335 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()
DMonthDay.java411 return range(field).checkValidIntValue(getLong(field), field); in get()
DZoneOffset.java590 return range(field).checkValidIntValue(getLong(field), field);
DDuration.java657 NANO_OF_SECOND.checkValidIntValue(nanoOfSecond); in withNanos()
DOffsetDateTime.java967 … return with(dateTime, ZoneOffset.ofTotalSeconds(f.checkValidIntValue(newValue))); in with()