@Test public void testDeleteWithInsert() { BasicEventList<int[]> sourceList = new BasicEventList<>(); sourceList.add(new int[] { 1, 1, 1 }); sourceList.add(new int[] { 2, 1, 0 }); sourceList.add(new int[] { 3, 0, 1 }); sourceList.add(new int[] { 4, 1, 1 }); IntegerArrayMatcherEditor matcherEditor = new IntegerArrayMatcherEditor(0, 0); FilterList<int[]> filterList = new FilterList<>(sourceList, matcherEditor); UniqueList<int[]> uniqueList = new UniqueList<>(filterList, GlazedListsTests.intArrayComparator(0)); matcherEditor.setFilter(1, 1); matcherEditor.setFilter(2, 1); assertEquals(3, uniqueList.size()); assertEquals(1, uniqueList.get(0)[0]); assertEquals(3, uniqueList.get(1)[0]); assertEquals(4, uniqueList.get(2)[0]); }
@Override public int size() { return grouper.getBarcode().colourSize(Grouper.UNIQUE); }
UniqueList extends TransformedList<E, E> { @Override public int size() { return grouper.getBarcode().colourSize(Grouper.UNIQUE); } }
UniqueList extends TransformedList<E, E> { @Override public int size() { return grouper.getBarcode().colourSize(Grouper.UNIQUE); } UniqueList(EventList<E> source);  UniqueList(EventList<E> source, Comparator<? super E> comparator); private  UniqueList(SortedList<E> source, Void dummyParameter); }
UniqueList extends TransformedList<E, E> { @Override public int size() { return grouper.getBarcode().colourSize(Grouper.UNIQUE); } UniqueList(EventList<E> source);  UniqueList(EventList<E> source, Comparator<? super E> comparator); private  UniqueList(SortedList<E> source, Void dummyParameter); static UniqueList<E> create(EventList<E> source); void setComparator(Comparator<? super E> comparator); @Override int size(); @Override E remove(int index); @Override E set(int index, E value); @Override int indexOf(Object element); @Override void listChanged(ListEvent<E> listChanges); int getCount(int index); int getCount(E value); List<E> getAll(int index); List<E> getAll(E value); @Override void dispose(); }
UniqueList extends TransformedList<E, E> { @Override public int size() { return grouper.getBarcode().colourSize(Grouper.UNIQUE); } UniqueList(EventList<E> source);  UniqueList(EventList<E> source, Comparator<? super E> comparator); private  UniqueList(SortedList<E> source, Void dummyParameter); static UniqueList<E> create(EventList<E> source); void setComparator(Comparator<? super E> comparator); @Override int size(); @Override E remove(int index); @Override E set(int index, E value); @Override int indexOf(Object element); @Override void listChanged(ListEvent<E> listChanges); int getCount(int index); int getCount(E value); List<E> getAll(int index); List<E> getAll(E value); @Override void dispose();  }