@Test public void testProvideSelectables_1() { final List<DetailCategory> flatCategories = Arrays.asList(new DetailCategory(null, "a", "", true, null, null), new DetailCategory(null, "b", "", true, null, null)); final AisProject project = new AisProject("", flatCategories); Assert.assertEquals(flatCategories, project.provideSelectables()); }
@Override public List<DetailCategory> provideSelectables() { final List<DetailCategory> selectables = new LinkedList<>(); for (final DetailCategory singleCategory : this.categories) { if (singleCategory.isSelectable()) { selectables.add(singleCategory); } } return selectables; }
AisProject implements IMultiObjectModel<AisProject, Interview>, IDetailCategoryProvider { @Override public List<DetailCategory> provideSelectables() { final List<DetailCategory> selectables = new LinkedList<>(); for (final DetailCategory singleCategory : this.categories) { if (singleCategory.isSelectable()) { selectables.add(singleCategory); } } return selectables; } }
AisProject implements IMultiObjectModel<AisProject, Interview>, IDetailCategoryProvider { @Override public List<DetailCategory> provideSelectables() { final List<DetailCategory> selectables = new LinkedList<>(); for (final DetailCategory singleCategory : this.categories) { if (singleCategory.isSelectable()) { selectables.add(singleCategory); } } return selectables; } AisProject(final String label, final List<DetailCategory> categories); }
AisProject implements IMultiObjectModel<AisProject, Interview>, IDetailCategoryProvider { @Override public List<DetailCategory> provideSelectables() { final List<DetailCategory> selectables = new LinkedList<>(); for (final DetailCategory singleCategory : this.categories) { if (singleCategory.isSelectable()) { selectables.add(singleCategory); } } return selectables; } AisProject(final String label, final List<DetailCategory> categories); String getLabel(); AisProject setLabel(final String value); List<Interview> getInterviews(); AisProject setInterviews(final List<Interview> value); AisProject setCategories(final List<DetailCategory> value); @Override String getGroupKey(final Object interview); @Override Map<String, List<Interview>> getSubModelObjects(); @Override List<DetailCategory> provide(); @Override List<DetailCategory> provideSelectables(); @Override AisProject clone(); @Override int hashCode(); @Override boolean equals(final Object otherObject); }
AisProject implements IMultiObjectModel<AisProject, Interview>, IDetailCategoryProvider { @Override public List<DetailCategory> provideSelectables() { final List<DetailCategory> selectables = new LinkedList<>(); for (final DetailCategory singleCategory : this.categories) { if (singleCategory.isSelectable()) { selectables.add(singleCategory); } } return selectables; } AisProject(final String label, final List<DetailCategory> categories); String getLabel(); AisProject setLabel(final String value); List<Interview> getInterviews(); AisProject setInterviews(final List<Interview> value); AisProject setCategories(final List<DetailCategory> value); @Override String getGroupKey(final Object interview); @Override Map<String, List<Interview>> getSubModelObjects(); @Override List<DetailCategory> provide(); @Override List<DetailCategory> provideSelectables(); @Override AisProject clone(); @Override int hashCode(); @Override boolean equals(final Object otherObject);  }