@Test public void testToJavaName() { LocaleCode localeCode = new LocaleCode("en-US"); assertThat(localeCode.toJavaName()).isEqualTo("en_us"); }
@SuppressWarnings("null") public @NotNull String toJavaName() { return id.replace('-', '_'); }
LocaleCode implements Serializable { @SuppressWarnings("null") public @NotNull String toJavaName() { return id.replace('-', '_'); } }
LocaleCode implements Serializable { @SuppressWarnings("null") public @NotNull String toJavaName() { return id.replace('-', '_'); } LocaleCode(@NotNull String localeCode); @SuppressWarnings("unused") protected  LocaleCode(); }
LocaleCode implements Serializable { @SuppressWarnings("null") public @NotNull String toJavaName() { return id.replace('-', '_'); } LocaleCode(@NotNull String localeCode); @SuppressWarnings("unused") protected  LocaleCode(); static LocaleCode fromJavaName(String localeName); @SuppressWarnings("null") @NotNull String toJavaName(); @NotNull String toString(); @NotNull String getLanguage(); @Size(max = 128) @NotNull String getId(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
LocaleCode implements Serializable { @SuppressWarnings("null") public @NotNull String toJavaName() { return id.replace('-', '_'); } LocaleCode(@NotNull String localeCode); @SuppressWarnings("unused") protected  LocaleCode(); static LocaleCode fromJavaName(String localeName); @SuppressWarnings("null") @NotNull String toJavaName(); @NotNull String toString(); @NotNull String getLanguage(); @Size(max = 128) @NotNull String getId(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); static final LocaleCode EN; static final LocaleCode EN_US; static final LocaleCode DE; static final LocaleCode FR; static final LocaleCode IT; static final LocaleCode ES; static final LocaleCode JA; static final LocaleCode KO; static final LocaleCode PT; static final LocaleCode RU; static final LocaleCode ZH_HANS; static final LocaleCode ZH_HANT; }