Home
last modified time | relevance | path

Searched refs:nvalue (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java237 int nvalue = (int) newValue; in with() local
242 case DAY_OF_MONTH: return resolvePreviousValid(prolepticYear, month, nvalue); in with()
243 …se DAY_OF_YEAR: return resolvePreviousValid(prolepticYear, ((nvalue - 1) / 30) + 1, ((nvalue - 1) … in with()
244 case EPOCH_DAY: return ofEpochDay(nvalue); in with()
247 case MONTH_OF_YEAR: return resolvePreviousValid(prolepticYear, nvalue, day); in with()
248 …case YEAR_OF_ERA: return resolvePreviousValid(prolepticYear >= 1 ? nvalue : 1 - nvalue, month, day… in with()
249 case YEAR: return resolvePreviousValid(nvalue, month, day); in with()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahDate.java393 int nvalue = (int) newValue; in with() local
398 case DAY_OF_MONTH: return resolvePreviousValid(prolepticYear, monthOfYear, nvalue); in with()
399 … case DAY_OF_YEAR: return plusDays(Math.min(nvalue, lengthOfYear()) - getDayOfYear()); in with()
403 case MONTH_OF_YEAR: return resolvePreviousValid(prolepticYear, nvalue, dayOfMonth); in with()
405 …case YEAR_OF_ERA: return resolvePreviousValid(prolepticYear >= 1 ? nvalue : 1 - nvalue, monthOfYea… in with()
406 case YEAR: return resolvePreviousValid(nvalue, monthOfYear, dayOfMonth); in with()
DMinguoDate.java318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with() local
321 …return with(isoDate.withYear(getProlepticYear() >= 1 ? nvalue + YEARS_DIFFERENCE : (1 - nvalue) +… in with()
323 return with(isoDate.withYear(nvalue + YEARS_DIFFERENCE)); in with()
DThaiBuddhistDate.java318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with() local
321 …return with(isoDate.withYear((getProlepticYear() >= 1 ? nvalue : 1 - nvalue) - YEARS_DIFFERENCE)); in with()
323 return with(isoDate.withYear(nvalue - YEARS_DIFFERENCE)); in with()
DJapaneseDate.java525 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with() local
528 return this.withYear(nvalue); in with()
530 return with(isoDate.withYear(nvalue)); in with()
532 return this.withYear(JapaneseEra.of(nvalue), yearOfEra); in with()