JapaneseDate (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Serializable, Comparable<ChronoLocalDate>, ChronoLocalDate, Temporal, TemporalAccessor, TemporalAdjuster
-
Method Summary
Combines this date with a time to create a
ChronoLocalDateTime.booleanCompares this date to another date, including the chronology.
Obtains a
JapaneseDatefrom a temporal object.Gets the chronology of this date, which is the Japanese calendar system.
getEra()Gets the era applicable at this date.
longGets the value of the specified field as a
long.inthashCode()A hash code for this date.
booleanChecks if the specified field is supported.
intReturns the length of the month represented by this date.
Returns an object of the same type as this object with the specified period subtracted.
Returns an object of the same type as this object with an amount subtracted.
now()Obtains the current
JapaneseDatefrom the system clock in the default time-zone.Obtains the current
JapaneseDatefrom the specified clock.Obtains the current
JapaneseDatefrom the system clock in the specified time-zone.of(int prolepticYear, int month, int dayOfMonth) Obtains a
JapaneseDaterepresenting a date in the Japanese calendar system from the proleptic-year, month-of-year and day-of-month fields.of(JapaneseEra era, int yearOfEra, int month, int dayOfMonth) Obtains a
JapaneseDaterepresenting a date in the Japanese calendar system from the era, year-of-era, month-of-year and day-of-month fields.Returns an object of the same type as this object with the specified period added.
Returns an object of the same type as this object with an amount added.
toString()Outputs this date as a
String.Calculates the period between this date and another date as a
ChronoPeriod.longCalculates the amount of time until another date in terms of the specified unit.
Returns an adjusted object of the same type as this object with the adjustment made.
Returns an object of the same type as this object with the specified field altered.
Methods declared in interface ChronoLocalDate
adjustInto, compareTo, format, isAfter, isBefore, isEqual, isLeapYear, isSupported, lengthOfYear, query, toEpochDay, toString, until
-
Method Details
-
now
-
now
-
now
-
of
-
of
-
from
-
getChronology
-
getEra
-
lengthOfMonth
-
isSupported
-
getLong
-
with
-
with
-
plus
-
minus
-
plus
-
minus
-
atTime
-
until
-
equals
-
hashCode
-
until
-
toString
-