Searched defs:withYear (Results 1 - 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
H A DYearMonth.java683 case YEAR_OF_ERA: return withYear((int) (year < 1 ? 1 - newValue : newValue));
684 case YEAR: return withYear((int) newValue);
685 case ERA: return (getLong(ERA) == newValue ? this : withYear(1 - year));
702 public YearMonth withYear(int year) { method in class:YearMonth
H A DLocalDate.java1029 case YEAR_OF_ERA: return withYear((int) (year >= 1 ? newValue : 1 - newValue));
1030 case YEAR: return withYear((int) newValue);
1031 case ERA: return (getLong(ERA) == newValue ? this : withYear(1 - year));
1050 public LocalDate withYear(int year) { method in class:LocalDate
H A DLocalDateTime.java983 public LocalDateTime withYear(int year) { method in class:LocalDateTime
984 return with(date.withYear(year), time);
H A DOffsetDateTime.java988 public OffsetDateTime withYear(int year) { method in class:OffsetDateTime
989 return with(dateTime.withYear(year), offset);
H A DZonedDateTime.java1315 * {@link LocalDateTime#withYear(int) changing the year} of the local date-time.
1329 public ZonedDateTime withYear(int year) { method in class:ZonedDateTime
1330 return resolveLocal(dateTime.withYear(year));
/libcore/ojluni/src/main/java/java/time/chrono/
H A DJapaneseDate.java528 return this.withYear(nvalue);
530 return with(isoDate.withYear(nvalue));
532 return this.withYear(JapaneseEra.of(nvalue), yearOfEra);
587 private JapaneseDate withYear(JapaneseEra era, int yearOfEra) { method in class:JapaneseDate
589 return with(isoDate.withYear(year));
605 private JapaneseDate withYear(int year) { method in class:JapaneseDate
606 return withYear(getEra(), year);

Completed in 111 milliseconds