Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java308 Chronology getChronology(); in getChronology() method
326 return getChronology().eraOf(get(ERA)); in getEra()
341 return getChronology().isLeapYear(getLong(YEAR)); in isLeapYear()
428 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
442 return ChronoLocalDateImpl.ensureValid(getChronology(), field.adjustInto(this, newValue)); in with()
452 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.plus(amount)); in plus()
465 return ChronoLocalDateImpl.ensureValid(getChronology(), unit.addTo(this, amountToAdd)); in plus()
475 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus()
486 …return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract, uni… in minus()
516 return (R) getChronology(); in query()
[all …]
DChronoLocalDateTime.java192 default Chronology getChronology() { in getChronology() method
193 return toLocalDate().getChronology(); in getChronology()
273 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
291 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.plus(amount)); in plus()
309 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus()
319 …return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract,… in minus()
349 return (R) getChronology(); in query()
511 cmp = getChronology().compareTo(other.getChronology()); in compareTo()
DChronoZonedDateTime.java264 default Chronology getChronology() { in getChronology() method
265 return toLocalDate().getChronology(); in getChronology()
420 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
438 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.plus(amount)); in plus()
456 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus()
466 …return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract,… in minus()
498 return (R) getChronology(); in query()
585 cmp = getChronology().compareTo(other.getChronology()); in compareTo()
DChronoLocalDateImpl.java164 if (chrono.equals(other.getChronology()) == false) { in ensureValid()
165 …"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.java190 if (chrono.equals(other.getChronology()) == false) { in ensureValid()
192 + ", actual: " + other.getChronology().getId()); in ensureValid()
223 D cd = ChronoLocalDateImpl.ensureValid(date.getChronology(), newDate); in with()
281 …return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adju… in with()
283 …return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adju… in with()
295 …return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), field.adjustInto(this, newValue)); in with()
313 … return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), unit.addTo(this, amountToAdd)); in plus()
369 … ChronoLocalDateTime<D> end = (ChronoLocalDateTime<D>) getChronology().localDateTime(endExclusive); in until()
DThaiBuddhistDate.java222 public ThaiBuddhistChronology getChronology() { in getChronology() method in ThaiBuddhistDate
269 return getChronology().range(f); in range()
313 getChronology().range(chronoField).checkValidValue(newValue, chronoField); in with()
318 … int nvalue = getChronology().range(chronoField).checkValidIntValue(newValue, chronoField); in with()
428 return getChronology().period(period.getYears(), period.getMonths(), period.getDays()); in until()
465 return getChronology().getId().hashCode() ^ isoDate.hashCode(); in hashCode()
DMinguoDate.java222 public MinguoChronology getChronology() { in getChronology() method in MinguoDate
269 return getChronology().range(f); in range()
313 getChronology().range(chronoField).checkValidValue(newValue, chronoField); in with()
318 … int nvalue = getChronology().range(chronoField).checkValidIntValue(newValue, chronoField); in with()
428 return getChronology().period(period.getYears(), period.getMonths(), period.getDays()); in until()
465 return getChronology().getId().hashCode() ^ isoDate.hashCode(); in hashCode()
DHijrahDate.java297 public HijrahChronology getChronology() { in getChronology() method in HijrahDate
354 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()
627 && getChronology().equals(otherDate.getChronology()); in equals()
640 return getChronology().getId().hashCode() ^ (yearValue & 0xFFFFF800) in hashCode()
677 out.writeObject(getChronology()); in writeExternal()
DChronoZonedDateTimeImpl.java189 return (ChronoZonedDateTimeImpl<D>)ofInstant(getChronology(), instant, zone); in create()
204 if (chrono.equals(other.getChronology()) == false) { in ensureValid()
206 + ", 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.java158 public Chronology getChronology() { in getChronology() method in ChronoPeriodImpl
205 if (!(chrono.equals(period.getChronology()))) { in validateAmount()
206 …Chronology mismatch, expected: " + chrono.getId() + ", actual: " + period.getChronology().getId()); in validateAmount()
336 return getChronology().toString() + " P0D"; in toString()
339 buf.append(getChronology().toString()).append(' ').append('P'); in toString()
DJapaneseDate.java361 public JapaneseChronology getChronology() { in getChronology() method in JapaneseDate
455 return getChronology().range(f); in range()
521 … int nvalue = getChronology().range(chronoField).checkValidIntValue(newValue, chronoField); in with()
669 return getChronology().period(period.getYears(), period.getMonths(), period.getDays()); in until()
706 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.java176 public CopticChronology getChronology() { in getChronology() method in CopticDate
204 return getChronology().range(f); in range()
302 CopticDate end = getChronology().date(endExclusive); in until()
312 CopticDate end = getChronology().date(endDate); in until()
343 buf.append(getChronology().toString()) in toString()
372 return getChronology().hashCode() ^ ((int) (epDay ^ (epDay >>> 32)));
/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/ojluni/src/test/java/time/test/java/time/format/
DTestUnicodeExtension.java866 assertEquals(dtf.getChronology(), chronoExpected); in test_localizedBy()
889 assertEquals(dtf.getChronology(), chronoExpected); in test_withLocale()
915 assertEquals(dtf.getChronology(), chronoExpected); in test_ofPattern()
929 assertEquals(dtf.getChronology(), chronoExpected); in test_toFormatter()
DTestTextParserWithLocale.java222 .withChronology(date.getChronology()); in test_chronoLocalDate()
/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.java257 if (IsoChronology.INSTANCE.equals(((ChronoPeriod) amount).getChronology()) == false) { in from()
468 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()

12