@Override public HijrahDate date(TemporalAccessor temporal) { if (temporal instanceof HijrahDate) { return (HijrahDate) temporal; } return HijrahDate.ofEpochDay(this, temporal.getLong(EPOCH_DAY)); }
/** * Obtains a local date in the Hijrah calendar system from the epoch-day. * * @param epochDay the epoch day * @return the Hijrah local date, not null * @throws DateTimeException if unable to create the date */ @Override // override with covariant return type public HijrahDate dateEpochDay(long epochDay) { return HijrahDate.ofEpochDay(this, epochDay); }