@Test public void testFromJavaName() { LocaleCode localeCode = LocaleCode.fromJavaName("en_US"); LocaleCode expected = new LocaleCode("en-us"); assertThat(localeCode).isEqualTo(expected); }
public static LocaleCode fromJavaName(String localeName) { return new LocaleCode(localeName.replace('_', '-')); }
LocaleCode implements Serializable { public static LocaleCode fromJavaName(String localeName) { return new LocaleCode(localeName.replace('_', '-')); } }
LocaleCode implements Serializable { public static LocaleCode fromJavaName(String localeName) { return new LocaleCode(localeName.replace('_', '-')); } LocaleCode(@NotNull String localeCode); @SuppressWarnings("unused") protected  LocaleCode(); }
LocaleCode implements Serializable { public static LocaleCode fromJavaName(String localeName) { return new LocaleCode(localeName.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 { public static LocaleCode fromJavaName(String localeName) { return new LocaleCode(localeName.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; }