Top Description Constructors Methods
org.threeten.extra.chrono

pack-priv abstract Class AbstractNileDate

extends AbstractDate
Class Inheritance
Known Direct Subclasses
org.threeten.extra.chrono.CopticDate, org.threeten.extra.chrono.EthiopicDate
Imports
java.time.temporal.ValueRange

A date in one of the Nile river calendar systems.

Implementation Requirements

Implementations must be immutable and thread-safe.

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractNileDate()

Creates an instance.

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv abstract int
public int

Returns:

the length of the month in days, from 5 to 30
lengthOfMonth
()

Implements java.time.chrono.ChronoLocalDate.lengthOfMonth.

Returns the length of the month represented by this date.

pack-priv int
pack-priv ValueRange
public long
toEpochDay()

Overrides default java.time.chrono.ChronoLocalDate.toEpochDay.

Converts this date to the Epoch Day.

pack-priv AbstractDate
Inherited from org.threeten.extra.chrono.AbstractDate:
daysUntildoUntilequalsgetAlignedDayOfWeekInMonthgetAlignedDayOfWeekInYeargetAlignedWeekOfMonthgetAlignedWeekOfYeargetDayOfMonthgetDayOfWeekgetLonggetMonthgetProlepticMonthgetProlepticYeargetYearOfErahashCodelengthOfWeekmonthsUntilplusplusDaysplusMonthsplusWeeksplusYearsrangerangeChronoresolveEpochDayresolvePrevioustoStringuntilweeksUntilwith

Constructor Detail

AbstractNileDateback to summary
pack-priv AbstractNileDate()

Creates an instance.

Method Detail

getDayOfYearback to summary
pack-priv int getDayOfYear()

Implements abstract org.threeten.extra.chrono.AbstractDate.getDayOfYear.

Annotations
@Override
getEpochDayDifferenceback to summary
pack-priv abstract int getEpochDayDifference()
lengthOfMonthback to summary
public int lengthOfMonth()

Implements java.time.chrono.ChronoLocalDate.lengthOfMonth.

Returns the length of the month represented by this date.

This returns the length of the month in days. Months 1 to 12 have 30 days. Month 13 has 5 or 6 days.

Returns:int

the length of the month in days, from 5 to 30

Annotations
@Override
lengthOfYearInMonthsback to summary
pack-priv int lengthOfYearInMonths()

Overrides org.threeten.extra.chrono.AbstractDate.lengthOfYearInMonths.

Annotations
@Override
rangeAlignedWeekOfMonthback to summary
pack-priv ValueRange rangeAlignedWeekOfMonth()

Implements abstract org.threeten.extra.chrono.AbstractDate.rangeAlignedWeekOfMonth.

Annotations
@Override
toEpochDayback to summary
public long toEpochDay()

Overrides default java.time.chrono.ChronoLocalDate.toEpochDay.

Doc from java.time.chrono.ChronoLocalDate.toEpochDay.

Converts this date to the Epoch Day.

The Epoch Day count is a simple incrementing count of days where day 0 is 1970-01-01 (ISO). This definition is the same for all chronologies, enabling conversion.

This default implementation queries the EPOCH_DAY field.

Returns:long

the Epoch Day equivalent to this date

Annotations
@Override
withDayOfYearback to summary
pack-priv AbstractDate withDayOfYear(int value)

Overrides org.threeten.extra.chrono.AbstractDate.withDayOfYear.

Annotations
@Override