Top Description Fields Constructors Methods
org.threeten.extra.chrono

pack-priv abstract Class AbstractNileChronology

extends AbstractChronology
Class Inheritance
Known Direct Subclasses
org.threeten.extra.chrono.CopticChronology, org.threeten.extra.chrono.EthiopicChronology
Imports
java.time.chrono.AbstractChronology, java.time.temporal.ChronoField, .ValueRange

A chronology describing one of the Nile river calendar systems.

Implementation Requirements

Implementations must be immutable and thread-safe.

Field Summary

Modifier and TypeField and Description
pack-priv static final ValueRange
ALIGNED_WOM_RANGE

Range of weeks.

pack-priv static final ValueRange
DOM_RANGE

Range of days.

pack-priv static final ValueRange
DOM_RANGE_LEAP

Range of days.

pack-priv static final ValueRange
DOM_RANGE_NONLEAP

Range of days.

pack-priv static final ValueRange
MOY_RANGE

Range of months.

pack-priv static final ValueRange
PROLEPTIC_MONTH_RANGE

Range of proleptic month.

pack-priv static final ValueRange
YEAR_RANGE

Range of proleptic-year.

pack-priv static final ValueRange
YOE_RANGE

Range of year.

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractNileChronology()

Private constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the year is a leap year
isLeapYear
(long
the proleptic-year to check, not validated for range
prolepticYear
)

Implements java.time.chrono.Chronology.isLeapYear.

Checks if the specified year is a leap year.

public ValueRange
range(ChronoField
the field to get the range for, not null
field
)

Implements java.time.chrono.Chronology.range.

Gets the range of valid values for the specified field.

Inherited from java.time.chrono.AbstractChronology:
compareToequalshashCoderesolveDatetoString

Field Detail

ALIGNED_WOM_RANGEback to summary
pack-priv static final ValueRange ALIGNED_WOM_RANGE

Range of weeks.

DOM_RANGEback to summary
pack-priv static final ValueRange DOM_RANGE

Range of days.

DOM_RANGE_LEAPback to summary
pack-priv static final ValueRange DOM_RANGE_LEAP

Range of days.

DOM_RANGE_NONLEAPback to summary
pack-priv static final ValueRange DOM_RANGE_NONLEAP

Range of days.

MOY_RANGEback to summary
pack-priv static final ValueRange MOY_RANGE

Range of months.

PROLEPTIC_MONTH_RANGEback to summary
pack-priv static final ValueRange PROLEPTIC_MONTH_RANGE

Range of proleptic month.

YEAR_RANGEback to summary
pack-priv static final ValueRange YEAR_RANGE

Range of proleptic-year.

YOE_RANGEback to summary
pack-priv static final ValueRange YOE_RANGE

Range of year.

Constructor Detail

AbstractNileChronologyback to summary
pack-priv AbstractNileChronology()

Private constructor.

Method Detail

isLeapYearback to summary
public boolean isLeapYear(long prolepticYear)

Implements java.time.chrono.Chronology.isLeapYear.

Checks if the specified year is a leap year.

The proleptic-year is leap if the remainder after division by four equals three. This method does not validate the year passed in, and only has a well-defined result for years in the supported range.

Parameters
prolepticYear:long

the proleptic-year to check, not validated for range

Returns:boolean

true if the year is a leap year

Annotations
@Override
rangeback to summary
public ValueRange range(ChronoField field)

Implements java.time.chrono.Chronology.range.

Doc from java.time.chrono.Chronology.range.

Gets the range of valid values for the specified field.

All fields can be expressed as a long integer. This method returns an object that describes the valid range for that value.

Note that the result only describes the minimum and maximum valid values and it is important not to read too much into them. For example, there could be values within the range that are invalid for the field.

This method will return a result whether or not the chronology supports the field.

Parameters
field:ChronoField

the field to get the range for, not null

Returns:ValueRange

the range of valid values for the field, not null

Annotations
@Override