@Test public void testRemove() { BasicEventList<String> source = new BasicEventList<>(); EventList<String> firstLetters = GlazedLists.transformByFunction(source, GlazedListsTests.getFirstLetterFunction()); source.add(ZERO); source.add(ONE); source.add(TWO); source.add("THREE"); source.remove(ZERO); assertEquals("O", firstLetters.get(0)); assertEquals("T", firstLetters.get(1)); assertEquals("T", firstLetters.get(2)); source.remove(1); assertEquals("O", firstLetters.get(0)); assertEquals("T", firstLetters.get(1)); }
@Override public E get(int index) { final S elem = source.get(index); return function.evaluate(elem); }
SimpleFunctionList extends TransformedList<S, E> { @Override public E get(int index) { final S elem = source.get(index); return function.evaluate(elem); } }
SimpleFunctionList extends TransformedList<S, E> { @Override public E get(int index) { final S elem = source.get(index); return function.evaluate(elem); } SimpleFunctionList(EventList<S> source, Function<S, E> function); }
SimpleFunctionList extends TransformedList<S, E> { @Override public E get(int index) { final S elem = source.get(index); return function.evaluate(elem); } SimpleFunctionList(EventList<S> source, Function<S, E> function); @Override E get(int index); @Override void listChanged(ListEvent<S> listChanges); }
SimpleFunctionList extends TransformedList<S, E> { @Override public E get(int index) { final S elem = source.get(index); return function.evaluate(elem); } SimpleFunctionList(EventList<S> source, Function<S, E> function); @Override E get(int index); @Override void listChanged(ListEvent<S> listChanges);  }