Home
last modified time | relevance | path

Searched refs:japaneseEra (Results 1 – 1 of 1) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseEra.java239 public static JapaneseEra of(int japaneseEra) { in of() argument
240 if (japaneseEra < MEIJI.eraValue || japaneseEra + ERA_OFFSET > KNOWN_ERAS.length) { in of()
241 throw new DateTimeException("Invalid era: " + japaneseEra); in of()
243 return KNOWN_ERAS[ordinal(japaneseEra)]; in of()
256 public static JapaneseEra valueOf(String japaneseEra) { in valueOf() argument
257 Objects.requireNonNull(japaneseEra, "japaneseEra"); in valueOf()
259 if (era.getName().equals(japaneseEra)) { in valueOf()