object JapaneseEra extends Serializable
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- JapaneseEra
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
HEISEI: JapaneseEra
The singleton instance for the 'Heisei' era (1989-01-08 - current) which has the value 2.
-
val
MEIJI: JapaneseEra
The singleton instance for the 'Meiji' era (1868-09-08 - 1912-07-29) which has the value -1.
-
val
SHOWA: JapaneseEra
The singleton instance for the 'Showa' era (1926-12-25 - 1989-01-07) which has the value 1.
-
val
TAISHO: JapaneseEra
The singleton instance for the 'Taisho' era (1912-07-30 - 1926-12-24) which has the value 0.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
of(japaneseEra: Int): JapaneseEra
Obtains an instance of
JapaneseEra
from anint
value.Obtains an instance of
JapaneseEra
from anint
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
-
def
registerEra(since: LocalDate, name: String): JapaneseEra
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(japaneseEra: String): JapaneseEra
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
-
def
values: Array[JapaneseEra]
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )