Searched refs:japaneseEra (Results 1 – 1 of 1) sorted by relevance
239 public static JapaneseEra of(int japaneseEra) { in of() argument240 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() argument257 Objects.requireNonNull(japaneseEra, "japaneseEra"); in valueOf()259 if (era.getName().equals(japaneseEra)) { in valueOf()