/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDate.java | 305 Chronology getChronology(); in getChronology() method 323 return getChronology().eraOf(get(ERA)); in getEra() 338 return getChronology().isLeapYear(getLong(YEAR)); in isLeapYear() 425 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with() 439 return ChronoLocalDateImpl.ensureValid(getChronology(), field.adjustInto(this, newValue)); in with() 449 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.plus(amount)); in plus() 462 return ChronoLocalDateImpl.ensureValid(getChronology(), unit.addTo(this, amountToAdd)); in plus() 472 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus() 483 …return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract, uni… in minus() 513 return (R) getChronology(); in query() [all …]
|
D | ChronoLocalDateTime.java | 185 default Chronology getChronology() { in getChronology() method 186 return toLocalDate().getChronology(); in getChronology() 266 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with() 284 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.plus(amount)); in plus() 302 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus() 312 …return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract,… in minus() 342 return (R) getChronology(); in query() 504 cmp = getChronology().compareTo(other.getChronology()); in compareTo()
|
D | ChronoZonedDateTime.java | 257 default Chronology getChronology() { in getChronology() method 258 return toLocalDate().getChronology(); in getChronology() 413 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with() 431 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.plus(amount)); in plus() 449 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus() 459 …return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract,… in minus() 491 return (R) getChronology(); in query() 578 cmp = getChronology().compareTo(other.getChronology()); in compareTo()
|
D | ChronoLocalDateImpl.java | 163 if (chrono.equals(other.getChronology()) == false) { in ensureValid() 164 …"Chronology mismatch, expected: " + chrono.getId() + ", actual: " + other.getChronology().getId()); in ensureValid() 378 ChronoLocalDate end = getChronology().date(endExclusive); in until() 401 ValueRange range = getChronology().range(MONTH_OF_YEAR); in monthsUntil() 424 return getChronology().hashCode() ^ ((int) (epDay ^ (epDay >>> 32))); in hashCode() 434 buf.append(getChronology().toString()) in toString()
|
D | ChronoLocalDateTimeImpl.java | 189 if (chrono.equals(other.getChronology()) == false) { in ensureValid() 191 + ", actual: " + other.getChronology().getId()); in ensureValid() 222 D cd = ChronoLocalDateImpl.ensureValid(date.getChronology(), newDate); in with() 284 …return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adju… in with() 286 …return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adju… in with() 299 …return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), field.adjustInto(this, newValue)); in with() 318 … return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), unit.addTo(this, amountToAdd)); in plus() 374 … ChronoLocalDateTime<D> end = (ChronoLocalDateTime<D>) getChronology().localDateTime(endExclusive); in until()
|
D | MinguoDate.java | 221 public MinguoChronology getChronology() { in getChronology() method in MinguoDate 268 return getChronology().range(f); in range() 313 getChronology().range(f).checkValidValue(newValue, f); in with() 318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with() 428 return getChronology().period(period.getYears(), period.getMonths(), period.getDays()); in until() 468 return getChronology().getId().hashCode() ^ isoDate.hashCode(); in hashCode()
|
D | ThaiBuddhistDate.java | 221 public ThaiBuddhistChronology getChronology() { in getChronology() method in ThaiBuddhistDate 268 return getChronology().range(f); in range() 313 getChronology().range(f).checkValidValue(newValue, f); in with() 318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with() 428 return getChronology().period(period.getYears(), period.getMonths(), period.getDays()); in until() 468 return getChronology().getId().hashCode() ^ isoDate.hashCode(); in hashCode()
|
D | HijrahDate.java | 296 public HijrahChronology getChronology() { in getChronology() method in HijrahDate 353 return getChronology().range(f); in range() 589 HijrahDate end = getChronology().date(endDate); in until() 602 return getChronology().period(Math.toIntExact(years), months, days); in until() 628 && getChronology().equals(otherDate.getChronology()); in equals() 643 return getChronology().getId().hashCode() ^ (yearValue & 0xFFFFF800) in hashCode() 678 out.writeObject(getChronology()); in writeExternal()
|
D | ChronoZonedDateTimeImpl.java | 188 return (ChronoZonedDateTimeImpl<D>)ofInstant(getChronology(), instant, zone); in create() 203 if (chrono.equals(other.getChronology()) == false) { in ensureValid() 205 + ", actual: " + other.getChronology().getId()); in ensureValid() 296 … return ChronoZonedDateTimeImpl.ensureValid(getChronology(), field.adjustInto(this, newValue)); in with() 305 …return ChronoZonedDateTimeImpl.ensureValid(getChronology(), unit.addTo(this, amountToAdd)); /// … in plus() 313 … ChronoZonedDateTime<D> end = (ChronoZonedDateTime<D>) getChronology().zonedDateTime(endExclusive); in until()
|
D | ChronoPeriodImpl.java | 159 public Chronology getChronology() { in getChronology() method in ChronoPeriodImpl 207 if (chrono.equals(period.getChronology()) == false) { in validateAmount() 208 …Chronology mismatch, expected: " + chrono.getId() + ", actual: " + period.getChronology().getId()); in validateAmount() 341 return getChronology().toString() + " P0D"; in toString() 344 buf.append(getChronology().toString()).append(' ').append('P'); in toString()
|
D | JapaneseDate.java | 360 public JapaneseChronology getChronology() { in getChronology() method in JapaneseDate 458 return getChronology().range(f); in range() 525 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); in with() 673 return getChronology().period(period.getYears(), period.getMonths(), period.getDays()); in until() 713 return getChronology().getId().hashCode() ^ isoDate.hashCode(); in hashCode()
|
D | ChronoPeriod.java | 164 Chronology getChronology(); in getChronology() method
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 175 public CopticChronology getChronology() { in getChronology() method in CopticDate 203 return getChronology().range(f); in range() 301 CopticDate end = getChronology().date(endExclusive); in until() 311 CopticDate end = getChronology().date(endDate); in until() 342 buf.append(getChronology().toString()) in toString() 371 return getChronology().hashCode() ^ ((int) (epDay ^ (epDay >>> 32)));
|
D | TCKChronoPeriod.java | 144 assertEquals(period.getChronology(), chrono); in test_getChronology()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestExampleCode.java | 94 System.out.printf(" Today is %s %s %d-%s-%d%n", now1.getChronology().getId(), in test_chronoPackageExample() 111 System.out.printf(" %s: 1st of year: %s; end of year: %s%n", last.getChronology().getId(), in test_chronoPackageExample() 154 System.out.printf(" Today is %s %s %d-%s-%d%n", now1.getChronology().getId(), in test_calendarPackageExample() 164 System.out.printf(" %s: 1st of year: %s; end of year: %s%n", last.getChronology().getId(), in test_calendarPackageExample()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | LocalDateTest.java | 35 assertSame(IsoChronology.INSTANCE, LocalDate.MIN.getChronology()); in test_getChronology()
|
D | PeriodTest.java | 34 assertSame(IsoChronology.INSTANCE, Period.ZERO.getChronology()); in test_getChronology()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatters.java | 176 …assertEquals(DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).getChronology(), IsoChronology.IN… in test_ofLocalizedDate_basics() 183 …assertEquals(DateTimeFormatter.ofLocalizedTime(FormatStyle.FULL).getChronology(), IsoChronology.IN… in test_ofLocalizedTime_basics() 190 …assertEquals(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL).getChronology(), IsoChronolog… in test_ofLocalizedDateTime1_basics() 197 …meFormatter.ofLocalizedDateTime(FormatStyle.FULL, FormatStyle.MEDIUM).getChronology(), IsoChronolo… in test_ofLocalizedDateTime2_basics() 291 assertEquals(DateTimeFormatter.ISO_LOCAL_DATE.getChronology(), IsoChronology.INSTANCE); in test_isoLocalDate_basics() 349 assertEquals(DateTimeFormatter.ISO_OFFSET_DATE.getChronology(), IsoChronology.INSTANCE); in test_isoOffsetDate_basics() 409 assertEquals(DateTimeFormatter.ISO_DATE.getChronology(), IsoChronology.INSTANCE); in test_isoDate_basics() 479 assertEquals(DateTimeFormatter.ISO_LOCAL_TIME.getChronology(), null); in test_isoLocalTime_basics() 549 assertEquals(DateTimeFormatter.ISO_OFFSET_TIME.getChronology(), null); in test_isoOffsetTime_basics() 621 assertEquals(DateTimeFormatter.ISO_TIME.getChronology(), null); in test_isoTime_basics() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ThaiBuddhistChronologyTest.java | 74 assertSame(ThaiBuddhistChronology.INSTANCE, ThaiBuddhistDate.now().getChronology()); in test_ThaiBuddhistDate_getChronology()
|
D | MinguoChronologyTest.java | 72 assertSame(MinguoChronology.INSTANCE, MinguoDate.now().getChronology()); in test_MinguoDate_getChronology()
|
D | JapaneseChronologyTest.java | 68 assertSame(JapaneseChronology.INSTANCE, JapaneseDate.now().getChronology()); in test_JapaneseDate_getChronology()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Period.java | 259 if (IsoChronology.INSTANCE.equals(((ChronoPeriod) amount).getChronology()) == false) { in from() 466 public IsoChronology getChronology() { in getChronology() method in Period
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 125 Chronology overrideChrono = formatter.getChronology(); in adjust()
|
D | DateTimeParseContext.java | 169 chrono = formatter.getChronology(); in getEffectiveChronology()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestReducedParser.java | 413 Chronology chrono = date.getChronology(); in test_reducedWithChronoYear() 431 Chronology chrono = date.getChronology(); in test_reducedWithChronoYearOfEra()
|