@Test public void conversionToAndFrom() { FilterGroup group = new FilterGroup(ImmutableList.of("abc", "def"), "fg1"); FilterGroupBean bean = new FilterGroupBean(group); assertThat(new FilterGroupBean(bean.toFilterGroup()), equalTo(bean)); }
public FilterGroup toFilterGroup() { return new FilterGroup(ImmutableList.copyOf(firstNonNull(filters, ImmutableSet.of())), name); }
FilterGroupBean { public FilterGroup toFilterGroup() { return new FilterGroup(ImmutableList.copyOf(firstNonNull(filters, ImmutableSet.of())), name); } }
FilterGroupBean { public FilterGroup toFilterGroup() { return new FilterGroup(ImmutableList.copyOf(firstNonNull(filters, ImmutableSet.of())), name); } @JsonCreator private  FilterGroupBean();  FilterGroupBean(FilterGroup filterGroup); }
FilterGroupBean { public FilterGroup toFilterGroup() { return new FilterGroup(ImmutableList.copyOf(firstNonNull(filters, ImmutableSet.of())), name); } @JsonCreator private  FilterGroupBean();  FilterGroupBean(FilterGroup filterGroup); @Override boolean equals(Object o); @Override int hashCode(); FilterGroup toFilterGroup(); }
FilterGroupBean { public FilterGroup toFilterGroup() { return new FilterGroup(ImmutableList.copyOf(firstNonNull(filters, ImmutableSet.of())), name); } @JsonCreator private  FilterGroupBean();  FilterGroupBean(FilterGroup filterGroup); @Override boolean equals(Object o); @Override int hashCode(); FilterGroup toFilterGroup(); public List<String> filters; public String name; }