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.
the date representing the first date of the era, validated not null
the name
the { @code JapaneseEra} singleton, not null
DateTimeException
if an additional era has already been registered