Home
last modified time | relevance | path

Searched refs:checkValidValue (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java290 HOUR_OF_DAY.checkValidValue(hour); in of()
294 MINUTE_OF_HOUR.checkValidValue(minute); in of()
311 HOUR_OF_DAY.checkValidValue(hour); in of()
315 MINUTE_OF_HOUR.checkValidValue(minute); in of()
316 SECOND_OF_MINUTE.checkValidValue(second); in of()
333 HOUR_OF_DAY.checkValidValue(hour); in of()
334 MINUTE_OF_HOUR.checkValidValue(minute); in of()
335 SECOND_OF_MINUTE.checkValidValue(second); in of()
336 NANO_OF_SECOND.checkValidValue(nanoOfSecond); in of()
352 SECOND_OF_DAY.checkValidValue(secondOfDay); in ofSecondOfDay()
[all …]
DLocalDate.java240 YEAR.checkValidValue(year); in of()
242 DAY_OF_MONTH.checkValidValue(dayOfMonth); in of()
260 YEAR.checkValidValue(year); in of()
261 MONTH_OF_YEAR.checkValidValue(month); in of()
262 DAY_OF_MONTH.checkValidValue(dayOfMonth); in of()
280 YEAR.checkValidValue(year); in ofYearDay()
281 DAY_OF_YEAR.checkValidValue(dayOfYear); in ofYearDay()
1017 f.checkValidValue(newValue); in with()
1054 YEAR.checkValidValue(year); in withYear()
1073 MONTH_OF_YEAR.checkValidValue(month); in withMonth()
DYearMonth.java220 YEAR.checkValidValue(year); in of()
221 MONTH_OF_YEAR.checkValidValue(month); in of()
679 f.checkValidValue(newValue); in with()
703 YEAR.checkValidValue(year); in withYear()
717 MONTH_OF_YEAR.checkValidValue(month); in withMonth()
DYear.java220 YEAR.checkValidValue(isoYear); in of()
616 f.checkValidValue(newValue); in with()
DMonthDay.java213 DAY_OF_MONTH.checkValidValue(dayOfMonth); in of()
DInstant.java701 f.checkValidValue(newValue); in with()
DLocalDateTime.java412 NANO_OF_SECOND.checkValidValue(nanoOfSecond); in ofEpochSecond()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java374 CLOCK_HOUR_OF_DAY.checkValidValue(ch); in resolveTimeFields()
382 CLOCK_HOUR_OF_AMPM.checkValidValue(ch); in resolveTimeFields()
392 AMPM_OF_DAY.checkValidValue(ap); in resolveTimeFields()
393 HOUR_OF_AMPM.checkValidValue(ap); in resolveTimeFields()
400 NANO_OF_DAY.checkValidValue(nod); in resolveTimeFields()
410 MICRO_OF_DAY.checkValidValue(cod); in resolveTimeFields()
418 MILLI_OF_DAY.checkValidValue(lod); in resolveTimeFields()
426 SECOND_OF_DAY.checkValidValue(sod); in resolveTimeFields()
435 MINUTE_OF_DAY.checkValidValue(mod); in resolveTimeFields()
445 NANO_OF_SECOND.checkValidValue(nos); in resolveTimeFields()
[all …]
DDateTimeFormatterBuilder.java3030 range.checkValidValue(value, field); in convertToFraction()
/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java339 … range().checkValidValue(newValue, this); // leniently check from 1 to 92 TODO: check in adjustInto()
362 … rangeRefinedBy(date).checkValidValue(doq, this); // only allow exact range in resolve()
364 … range().checkValidValue(doq, this); // allow 1-92 rolling into next quarter in resolve()
409 range().checkValidValue(newValue, this); // strictly check from 1 to 4 in adjustInto()
463 range().checkValidValue(newValue, this); // lenient range in adjustInto()
492 … getWeekRange(date).checkValidValue(wowby, this); // only allow exact range in resolve()
494 … range().checkValidValue(wowby, this); // allow 1-53 rolling into next year in resolve()
DChronoField.java729 public long checkValidValue(long value) { in checkValidValue() method in ChronoField
730 return range().checkValidValue(value, this); in checkValidValue()
DJulianFields.java298 range().checkValidValue(value, this); in resolve()
DValueRange.java309 public long checkValidValue(long value, TemporalField field) { in checkValidValue() method in ValueRange
/libcore/ojluni/src/main/java/java/time/chrono/
DIsoChronology.java500 PROLEPTIC_MONTH.checkValidValue(pMonth); in resolveProlepticMonth()
512 YEAR_OF_ERA.checkValidValue(yoeLong); in resolveYearOfEra()
537 ERA.checkValidValue(fieldValues.get(ERA)); // always validated in resolveYearOfEra()
DMinguoDate.java313 getChronology().range(f).checkValidValue(newValue, f); in with()
DThaiBuddhistDate.java313 getChronology().range(f).checkValidValue(newValue, f); in with()
DAbstractChronology.java502 PROLEPTIC_MONTH.checkValidValue(pMonth); in resolveProlepticMonth()
546 range(ERA).checkValidValue(fieldValues.get(ERA), ERA); // always validated in resolveYearOfEra()
DHijrahDate.java392 chrono.range(f).checkValidValue(newValue, f); // TODO: validate value in with()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java149 CopticChronology.MOY_RANGE.checkValidValue(month, MONTH_OF_YEAR); in CopticDate()
156 range.checkValidValue(dayOfMonth, DAY_OF_MONTH); in CopticDate()
236 f.checkValidValue(newValue); // TODO: validate value in with()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java695 checkValidValue("Set-Cookie:", "val,ue"); in test_Parse()
696 checkValidValue("Set-Cookie:", "val\nue"); in test_Parse()
697 checkValidValue("Set-Cookie:", "value=value"); in test_Parse()
698 checkValidValue("Set-Cookie2:", "val\nue"); in test_Parse()
699 checkValidValue("Set-Cookie2:", "val\u2029ue"); in test_Parse()
700 checkValidValue("Set-Cookie2:", "value=value"); in test_Parse()
1012 private void checkValidValue(String header, String value) {