Object/Class

java.time.chrono

JapaneseDate

Related Docs: class JapaneseDate | package chrono

Permalink

object JapaneseDate extends Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JapaneseDate
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def from(temporal: TemporalAccessor): JapaneseDate

    Permalink

    Obtains a JapaneseDate from a temporal object.

    Obtains a JapaneseDate from a temporal object.

    This obtains a date in the Japanese calendar system based on the specified temporal. A TemporalAccessor represents an arbitrary set of date and time information, which this factory converts to an instance of JapaneseDate.

    The conversion typically uses the EPOCH_DAY field, which is standardized across calendar systems.

    This method matches the signature of the functional interface TemporalQuery allowing it to be used as a query via method reference, JapaneseDate::from.

    temporal

    the temporal object to convert, not null

    returns

    the date in Japanese calendar system, not null

    Exceptions thrown

    DateTimeException if unable to convert to a { @code JapaneseDate}

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def now(clock: Clock): JapaneseDate

    Permalink

    Obtains the current JapaneseDate from the specified clock.

    Obtains the current JapaneseDate from the specified clock.

    This will query the specified clock to obtain the current date - today. Using this method allows the use of an alternate clock for testing. The alternate clock may be introduced using dependency injection.

    clock

    the clock to use, not null

    returns

    the current date, not null

    Exceptions thrown

    DateTimeException if the current date cannot be obtained

  17. def now(zone: ZoneId): JapaneseDate

    Permalink

    Obtains the current JapaneseDate from the system clock in the specified time-zone.

    Obtains the current JapaneseDate from the system clock in the specified time-zone.

    This will query the system clock to obtain the current date. Specifying the time-zone avoids dependence on the default time-zone.

    Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.

    zone

    the zone ID to use, not null

    returns

    the current date using the system clock, not null

  18. def now: JapaneseDate

    Permalink

    Obtains the current JapaneseDate from the system clock in the default time-zone.

    Obtains the current JapaneseDate from the system clock in the default time-zone.

    This will query the system clock in the default time-zone to obtain the current date.

    Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.

    returns

    the current date using the system clock and default time-zone, not null

  19. def of(prolepticYear: Int, month: Int, dayOfMonth: Int): JapaneseDate

    Permalink

    Obtains a JapaneseDate representing a date in the Japanese calendar system from the proleptic-year, month-of-year and day-of-month fields.

    Obtains a JapaneseDate representing a date in the Japanese calendar system from the proleptic-year, month-of-year and day-of-month fields.

    This returns a JapaneseDate with the specified fields. The day must be valid for the year and month, otherwise an exception will be thrown.

    The Japanese proleptic year, month and day-of-month are the same as those in the ISO calendar system. They are not reset when the era changes.

    prolepticYear

    the Japanese proleptic-year

    month

    the Japanese month-of-year, from 1 to 12

    dayOfMonth

    the Japanese day-of-month, from 1 to 31

    returns

    the date in Japanese calendar system, not null

    Exceptions thrown

    DateTimeException if the value of any field is out of range, or if the day-of-month is invalid for the month-year

  20. def of(era: JapaneseEra, yearOfEra: Int, month: Int, dayOfMonth: Int): JapaneseDate

    Permalink

    Obtains a JapaneseDate representing a date in the Japanese calendar system from the era, year-of-era, month-of-year and day-of-month fields.

    Obtains a JapaneseDate representing a date in the Japanese calendar system from the era, year-of-era, month-of-year and day-of-month fields.

    This returns a JapaneseDate with the specified fields. The day must be valid for the year and month, otherwise an exception will be thrown.

    The Japanese month and day-of-month are the same as those in the ISO calendar system. They are not reset when the era changes. For example:

    6th Jan Showa 64 = ISO 1989-01-06
    7th Jan Showa 64 = ISO 1989-01-07
    8th Jan Heisei 1 = ISO 1989-01-08
    9th Jan Heisei 1 = ISO 1989-01-09
    

    era

    the Japanese era, not null

    yearOfEra

    the Japanese year-of-era

    month

    the Japanese month-of-year, from 1 to 12

    dayOfMonth

    the Japanese day-of-month, from 1 to 31

    returns

    the date in Japanese calendar system, not null

    Exceptions thrown

    DateTimeException if the value of any field is out of range, or if the day-of-month is invalid for the month-year

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped