@Test public void testUnmarshal() throws Exception { LocaleCodeAdapter adapter = new LocaleCodeAdapter(); assertThat(adapter.unmarshal(null)).isNull(); assertThat(adapter.unmarshal("en")).isNotNull().isEqualTo(LocaleCode.EN); }
public @Nullable LocaleCode unmarshal(@Nullable String s) throws Exception { if (s == null) { return null; } return new LocaleCode(s); }
LocaleCodeAdapter extends XmlAdapter<String, LocaleCode> { public @Nullable LocaleCode unmarshal(@Nullable String s) throws Exception { if (s == null) { return null; } return new LocaleCode(s); } }
LocaleCodeAdapter extends XmlAdapter<String, LocaleCode> { public @Nullable LocaleCode unmarshal(@Nullable String s) throws Exception { if (s == null) { return null; } return new LocaleCode(s); }  }
LocaleCodeAdapter extends XmlAdapter<String, LocaleCode> { public @Nullable LocaleCode unmarshal(@Nullable String s) throws Exception { if (s == null) { return null; } return new LocaleCode(s); }  @Nullable LocaleCode unmarshal(@Nullable String s); @Nullable String marshal(@Nullable LocaleCode localeCode); }
LocaleCodeAdapter extends XmlAdapter<String, LocaleCode> { public @Nullable LocaleCode unmarshal(@Nullable String s) throws Exception { if (s == null) { return null; } return new LocaleCode(s); }  @Nullable LocaleCode unmarshal(@Nullable String s); @Nullable String marshal(@Nullable LocaleCode localeCode);  }