Lines Matching refs:JapaneseEra

101 public final class JapaneseEra
114 public static final JapaneseEra MEIJI = new JapaneseEra(-1, LocalDate.of(1868, 1, 1));
119 public static final JapaneseEra TAISHO = new JapaneseEra(0, LocalDate.of(1912, 7, 30));
124 public static final JapaneseEra SHOWA = new JapaneseEra(1, LocalDate.of(1926, 12, 25));
129 public static final JapaneseEra HEISEI = new JapaneseEra(2, LocalDate.of(1989, 1, 8));
131 // The number of predefined JapaneseEra constants.
140 // array for the singleton JapaneseEra instances
141 private static final JapaneseEra[] KNOWN_ERAS;
146 KNOWN_ERAS = new JapaneseEra[ERA_CONFIG.length];
154 KNOWN_ERAS[i] = new JapaneseEra(i - ERA_OFFSET + 1, isoDate);
173 private JapaneseEra(int eraValue, LocalDate since) {
180 * Returns the Sun private Era instance corresponding to this {@code JapaneseEra}.
182 * @return the Sun private Era instance for this {@code JapaneseEra}.
190 * Obtains an instance of {@code JapaneseEra} from an {@code int} value.
197 * @return the {@code JapaneseEra} singleton, not null
200 public static JapaneseEra of(int japaneseEra) {
209 * Returns the {@code JapaneseEra} with the name.
215 * @return the {@code JapaneseEra} singleton, never null
216 * @throws IllegalArgumentException if there is not JapaneseEra with the specified name
218 public static JapaneseEra valueOf(String japaneseEra) {
220 for (JapaneseEra era : KNOWN_ERAS) {
233 * for (JapaneseEra c : JapaneseEra.values())
239 public static JapaneseEra[] values() {
251 // If this JapaneseEra is a supplemental one, obtain the name from
267 * Obtains an instance of {@code JapaneseEra} from a date.
272 static JapaneseEra from(LocalDate date) {
277 JapaneseEra era = KNOWN_ERAS[i];
285 static JapaneseEra toJapaneseEra(sun.util.calendar.Era privateEra) {
296 JapaneseEra era = KNOWN_ERAS[i];
395 * out.writeByte(5); // identifies a JapaneseEra
409 static JapaneseEra readExternal(DataInput in) throws IOException {
411 return JapaneseEra.of(eraValue);