| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | |
| pack-priv ChronoPeriod | |
| public boolean | Returns: true if this is equal to the other datethe object to check, null returns false obj)Overrides java. Implements java. Compares this date to another date, including the chronology. |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv abstract int | |
| pack-priv int | |
| pack-priv abstract int | |
| public long | getLong(TemporalField
the field to get, not null field)Implements java. Gets the value of the specified field as a |
| pack-priv abstract int | |
| pack-priv long | |
| pack-priv abstract int | |
| pack-priv int | |
| public int | Returns: a suitable hash code based only on the Chronology and the dateOverrides java. Implements java. A hash code for this date. |
| pack-priv int | |
| pack-priv int | |
| pack-priv long | |
| public AbstractDate | plus(long
the amount of the specified unit to add, may be negative amountToAdd, TemporalUnit the unit of the amount to add, not null unit)Overrides default java. Returns an object of the same type as this object with the specified period added. |
| pack-priv AbstractDate | |
| pack-priv AbstractDate | |
| pack-priv AbstractDate | |
| pack-priv AbstractDate | |
| public ValueRange | range(TemporalField
the field to query the range for, not null field)Overrides default java. Gets the range of valid values for the specified field. |
| pack-priv abstract ValueRange | |
| pack-priv ValueRange | |
| pack-priv AbstractDate | |
| pack-priv abstract AbstractDate | |
| public String | toString()
Overrides java. Implements java. Outputs this date as a |
| pack-priv long | |
| pack-priv long | |
| public AbstractDate | with(TemporalField
the field to set in the result, not null field, long the new value of the field in the result newValue)Overrides default java. Returns an object of the same type as this object with the specified field altered. |
| pack-priv AbstractDate |
| AbstractDate | back to summary |
|---|---|
| pack-priv AbstractDate() Creates an instance. | |
| daysUntil | back to summary |
|---|---|
| pack-priv long daysUntil(ChronoLocalDate end) | |
| doUntil | back to summary |
|---|---|
| pack-priv ChronoPeriod doUntil(AbstractDate end) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Compares this date to another date, including the chronology. Compares this date with another ensuring that the date is the same.
Only objects of this concrete type are compared, other types return false.
To compare the dates of two | |
| getAlignedDayOfWeekInMonth | back to summary |
|---|---|
| pack-priv int getAlignedDayOfWeekInMonth() | |
| getAlignedDayOfWeekInYear | back to summary |
|---|---|
| pack-priv int getAlignedDayOfWeekInYear() | |
| getAlignedWeekOfMonth | back to summary |
|---|---|
| pack-priv int getAlignedWeekOfMonth() | |
| getAlignedWeekOfYear | back to summary |
|---|---|
| pack-priv int getAlignedWeekOfYear() | |
| getDayOfMonth | back to summary |
|---|---|
| pack-priv abstract int getDayOfMonth() | |
| getDayOfWeek | back to summary |
|---|---|
| pack-priv int getDayOfWeek() | |
| getDayOfYear | back to summary |
|---|---|
| pack-priv abstract int getDayOfYear() | |
| getLong | back to summary |
|---|---|
| public long getLong(TemporalField field) Implements java. Doc from java. Gets the value of the specified field as a This queries the date-time for the value of the specified field. The returned value may be outside the valid range of values for the field. If the date-time cannot return the value, because the field is unsupported or for some other reason, an exception will be thrown.
| |
| getMonth | back to summary |
|---|---|
| pack-priv abstract int getMonth() | |
| getProlepticMonth | back to summary |
|---|---|
| pack-priv long getProlepticMonth() | |
| getProlepticYear | back to summary |
|---|---|
| pack-priv abstract int getProlepticYear() | |
| getYearOfEra | back to summary |
|---|---|
| pack-priv int getYearOfEra() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. A hash code for this date.
| |
| lengthOfWeek | back to summary |
|---|---|
| pack-priv int lengthOfWeek() | |
| lengthOfYearInMonths | back to summary |
|---|---|
| pack-priv int lengthOfYearInMonths() | |
| monthsUntil | back to summary |
|---|---|
| pack-priv long monthsUntil(AbstractDate end) | |
| plus | back to summary |
|---|---|
| public AbstractDate plus(long amountToAdd, TemporalUnit unit) Overrides default java. Doc from java. Returns an object of the same type as this object with the specified period added.
This method returns a new object based on this one with the specified period added.
For example, on a In some cases, changing a field is not fully defined. For example, if the target object is a date representing the 31st January, then adding one month would be unclear. In cases like this, the field is responsible for resolving the result. Typically it will choose the previous valid date, which would be the last valid day of February in this example.
| |
| plusDays | back to summary |
|---|---|
| pack-priv AbstractDate plusDays(long days) | |
| plusMonths | back to summary |
|---|---|
| pack-priv AbstractDate plusMonths(long months) | |
| plusWeeks | back to summary |
|---|---|
| pack-priv AbstractDate plusWeeks(long amountToAdd) | |
| plusYears | back to summary |
|---|---|
| pack-priv AbstractDate plusYears(long yearsToAdd) | |
| range | back to summary |
|---|---|
| public ValueRange range(TemporalField field) Overrides default java. Doc from java. Gets the range of valid values for the specified field.
All fields can be expressed as a 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.
| |
| rangeAlignedWeekOfMonth | back to summary |
|---|---|
| pack-priv abstract ValueRange rangeAlignedWeekOfMonth() | |
| rangeChrono | back to summary |
|---|---|
| pack-priv ValueRange rangeChrono(ChronoField field) | |
| resolveEpochDay | back to summary |
|---|---|
| pack-priv AbstractDate resolveEpochDay(long epochDay) | |
| resolvePrevious | back to summary |
|---|---|
| pack-priv abstract AbstractDate resolvePrevious(int newYear, int newMonth, int dayOfMonth) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Doc from java. Outputs this date as a The output will include the full local date. | |
| until | back to summary |
|---|---|
| pack-priv long until(AbstractDate end, TemporalUnit unit) | |
| weeksUntil | back to summary |
|---|---|
| pack-priv long weeksUntil(AbstractDate end) | |
| with | back to summary |
|---|---|
| public AbstractDate with(TemporalField field, long newValue) Overrides default java. Doc from java. Returns an object of the same type as this object with the specified field altered.
This returns a new object based on this one with the value for the specified field changed.
For example, on a In some cases, changing a field is not fully defined. For example, if the target object is a date representing the 31st January, then changing the month to February would be unclear. In cases like this, the field is responsible for resolving the result. Typically it will choose the previous valid date, which would be the last valid day of February in this example.
| |
| withDayOfYear | back to summary |
|---|---|
| pack-priv AbstractDate withDayOfYear(int value) | |