Object/Class

org.threeten.bp.chrono

JapaneseEra

Related Docs: class JapaneseEra | package chrono

Permalink

object JapaneseEra extends Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JapaneseEra
  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. val HEISEI: JapaneseEra

    Permalink

    The singleton instance for the 'Heisei' era (1989-01-08 - current) which has the value 2.

  5. val MEIJI: JapaneseEra

    Permalink

    The singleton instance for the 'Meiji' era (1868-09-08 - 1912-07-29) which has the value -1.

  6. val SHOWA: JapaneseEra

    Permalink

    The singleton instance for the 'Showa' era (1926-12-25 - 1989-01-07) which has the value 1.

  7. val TAISHO: JapaneseEra

    Permalink

    The singleton instance for the 'Taisho' era (1912-07-30 - 1926-12-24) which has the value 0.

  8. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def of(japaneseEra: Int): JapaneseEra

    Permalink

    Obtains an instance of JapaneseEra from an int value.

    Obtains an instance of JapaneseEra from an int value.

    The #SHOWA era that contains 1970-01-01 (ISO calendar system) has the value 1 Later era is numbered 2 (#HEISEI). Earlier eras are numbered 0 (#TAISHO), -1 (#MEIJI), only Meiji and later eras are supported.

    japaneseEra

    the era to represent

    returns

    the { @code JapaneseEra} singleton, not null

    Exceptions thrown

    DateTimeException if the value is invalid

  20. def registerEra(since: LocalDate, name: String): JapaneseEra

    Permalink

    Registers an additional instance of JapaneseEra.

    Registers an additional instance of JapaneseEra.

    A new Japanese era can begin at any time. This method allows one new era to be registered without the need for a new library version. If needed, callers should assign the result to a static variable accessible across the application. This must be done once, in early startup code.

    NOTE: This method does not exist in Java SE 8.

    since

    the date representing the first date of the era, validated not null

    name

    the name

    returns

    the { @code JapaneseEra} singleton, not null

    Exceptions thrown

    DateTimeException if an additional era has already been registered

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def valueOf(japaneseEra: String): JapaneseEra

    Permalink

    Returns the JapaneseEra with the name.

    Returns the JapaneseEra with the name.

    The string must match exactly the name of the era. (Extraneous whitespace characters are not permitted.)

    japaneseEra

    the japaneseEra name; non-null

    returns

    the { @code JapaneseEra} singleton, never null

    Exceptions thrown

    IllegalArgumentException if there is not JapaneseEra with the specified name

  24. def values: Array[JapaneseEra]

    Permalink

    Returns an array of JapaneseEras.

    Returns an array of JapaneseEras.

    This method may be used to iterate over the JapaneseEras as follows:

    for (JapaneseEra c : JapaneseEra.values())
    System.out.println(c);
    

    returns

    an array of JapaneseEras

  25. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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