LocalDate endDate ( ) { int ordinal = ordinal ( eraValue ) ; JapaneseEra [ ] eras = values ( ) ; if ( ordinal >= eras . length - 1 ) { return LocalDate . MAX ; } return eras [ ordinal + 1 ] . startDate ( ) . minusDays ( 1 ) ; }
Returns the end date of the era .