Home
last modified time | relevance | path

Searched refs:getChronology (Results 1 – 25 of 33) sorted by relevance

12

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java305 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 …]
DChronoLocalDateTime.java185 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()
DChronoZonedDateTime.java257 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()
DChronoLocalDateImpl.java163 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()
DChronoLocalDateTimeImpl.java189 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()
DMinguoDate.java221 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()
DThaiBuddhistDate.java221 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()
DHijrahDate.java296 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()
DChronoZonedDateTimeImpl.java188 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()
DChronoPeriodImpl.java159 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()
DJapaneseDate.java360 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()
DChronoPeriod.java164 Chronology getChronology(); in getChronology() method
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java175 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)));
DTCKChronoPeriod.java144 assertEquals(period.getChronology(), chrono); in test_getChronology()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestExampleCode.java94 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/
DPeriodTest.java34 assertSame(IsoChronology.INSTANCE, Period.ZERO.getChronology()); in test_getChronology()
DLocalDateTest.java35 assertSame(IsoChronology.INSTANCE, LocalDate.MIN.getChronology()); in test_getChronology()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java176 …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/
DThaiBuddhistChronologyTest.java74 assertSame(ThaiBuddhistChronology.INSTANCE, ThaiBuddhistDate.now().getChronology()); in test_ThaiBuddhistDate_getChronology()
DMinguoChronologyTest.java74 assertSame(MinguoChronology.INSTANCE, MinguoDate.now().getChronology()); in test_MinguoDate_getChronology()
DJapaneseChronologyTest.java71 assertSame(JapaneseChronology.INSTANCE, JapaneseDate.now().getChronology()); in test_JapaneseDate_getChronology()
/libcore/ojluni/src/main/java/java/time/
DPeriod.java259 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/
DDateTimeParseContext.java169 chrono = formatter.getChronology(); in getEffectiveChronology()
DDateTimePrintContext.java125 Chronology overrideChrono = formatter.getChronology(); in adjust()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestReducedParser.java413 Chronology chrono = date.getChronology(); in test_reducedWithChronoYear()
431 Chronology chrono = date.getChronology(); in test_reducedWithChronoYearOfEra()

12