@Test public void testFilter() throws Exception { Assert.assertFalse(TestUtils.containsNamedField("integerProperty", filtered)); Assert.assertTrue(TestUtils.containsNamedField("booleanProperty", filtered)); Assert.assertTrue(TestUtils.containsNamedField("stringProperty", filtered)); Assert.assertTrue(TestUtils.containsNamedField("doubleProperty", filtered)); Assert.assertTrue(TestUtils.containsNamedField("objectProperty", filtered)); }
public List<Element> filter(List<Element> toFilter) { List<Element> filtered = new ArrayList<Element>(); for (Element field : toFilter) { if (field.getAnnotation(NonVisual.class) == null) { filtered.add(field); } } return filtered; }
NonVisualFilter implements ElementListFilter { public List<Element> filter(List<Element> toFilter) { List<Element> filtered = new ArrayList<Element>(); for (Element field : toFilter) { if (field.getAnnotation(NonVisual.class) == null) { filtered.add(field); } } return filtered; } }
NonVisualFilter implements ElementListFilter { public List<Element> filter(List<Element> toFilter) { List<Element> filtered = new ArrayList<Element>(); for (Element field : toFilter) { if (field.getAnnotation(NonVisual.class) == null) { filtered.add(field); } } return filtered; }  }
NonVisualFilter implements ElementListFilter { public List<Element> filter(List<Element> toFilter) { List<Element> filtered = new ArrayList<Element>(); for (Element field : toFilter) { if (field.getAnnotation(NonVisual.class) == null) { filtered.add(field); } } return filtered; }  List<Element> filter(List<Element> toFilter); }
NonVisualFilter implements ElementListFilter { public List<Element> filter(List<Element> toFilter) { List<Element> filtered = new ArrayList<Element>(); for (Element field : toFilter) { if (field.getAnnotation(NonVisual.class) == null) { filtered.add(field); } } return filtered; }  List<Element> filter(List<Element> toFilter);  }