@Test public void testLeftEdgeSet() { EventList<String> source = new BasicEventList<>(); SortedList<String> sortedList = SortedList.create(source); PopularityList<String> popularityList = PopularityList.create(source); new PopularityListValidator(popularityList, sortedList); source.add(0, "Audi"); source.add(1, "Audi"); source.add(2, "BMW"); source.add(3, "BMW"); source.set(1, "BMW"); }
public static <E extends Comparable<? super E>> PopularityList<E> create(EventList<E> source) { return new PopularityList<>(UniqueList.create(source)); }
PopularityList extends TransformedList<E, E> { public static <E extends Comparable<? super E>> PopularityList<E> create(EventList<E> source) { return new PopularityList<>(UniqueList.create(source)); } }
PopularityList extends TransformedList<E, E> { public static <E extends Comparable<? super E>> PopularityList<E> create(EventList<E> source) { return new PopularityList<>(UniqueList.create(source)); } PopularityList(EventList<E> source);  PopularityList(EventList<E> source, Comparator<E> uniqueComparator); private  PopularityList(UniqueList<E> uniqueList); }
PopularityList extends TransformedList<E, E> { public static <E extends Comparable<? super E>> PopularityList<E> create(EventList<E> source) { return new PopularityList<>(UniqueList.create(source)); } PopularityList(EventList<E> source);  PopularityList(EventList<E> source, Comparator<E> uniqueComparator); private  PopularityList(UniqueList<E> uniqueList); static PopularityList<E> create(EventList<E> source); @Override void listChanged(ListEvent<E> listChanges); @Override void dispose(); }
PopularityList extends TransformedList<E, E> { public static <E extends Comparable<? super E>> PopularityList<E> create(EventList<E> source) { return new PopularityList<>(UniqueList.create(source)); } PopularityList(EventList<E> source);  PopularityList(EventList<E> source, Comparator<E> uniqueComparator); private  PopularityList(UniqueList<E> uniqueList); static PopularityList<E> create(EventList<E> source); @Override void listChanged(ListEvent<E> listChanges); @Override void dispose();  }