@Test public void testSortBeforeAndAfter() { for(int i = 0; i < 4000; i++) { unsortedList.add(new Integer(random.nextInt())); } final List<Comparable> controlList = new ArrayList<>(); controlList.addAll(unsortedList); Collections.sort(controlList); assertEquals(controlList, sortedList); sortedList = SortedList.create(unsortedList); assertEquals(controlList, sortedList); }
public static <E extends Comparable<? super E>> SortedList<E> create(EventList<E> source) { return new SortedList<>(source); }
SortedList extends TransformedList<E,E> { public static <E extends Comparable<? super E>> SortedList<E> create(EventList<E> source) { return new SortedList<>(source); } }
SortedList extends TransformedList<E,E> { public static <E extends Comparable<? super E>> SortedList<E> create(EventList<E> source) { return new SortedList<>(source); } SortedList(EventList<E> source);  SortedList(EventList<E> source, Comparator<? super E> comparator); }
SortedList extends TransformedList<E,E> { public static <E extends Comparable<? super E>> SortedList<E> create(EventList<E> source) { return new SortedList<>(source); } SortedList(EventList<E> source);  SortedList(EventList<E> source, Comparator<? super E> comparator); static SortedList<E> create(EventList<E> source); void setMode(int mode); int getMode(); @Override void listChanged(ListEvent<E> listChanges); Comparator<? super E> getComparator(); void setComparator(Comparator<? super E> comparator); @Override int indexOf(Object object); @Override int lastIndexOf(Object object); int sortIndex(Object object); int lastSortIndex(Object object); @Deprecated int indexOfSimulated(Object object); @Override boolean contains(Object object); @Override Iterator<E> iterator(); }
SortedList extends TransformedList<E,E> { public static <E extends Comparable<? super E>> SortedList<E> create(EventList<E> source) { return new SortedList<>(source); } SortedList(EventList<E> source);  SortedList(EventList<E> source, Comparator<? super E> comparator); static SortedList<E> create(EventList<E> source); void setMode(int mode); int getMode(); @Override void listChanged(ListEvent<E> listChanges); Comparator<? super E> getComparator(); void setComparator(Comparator<? super E> comparator); @Override int indexOf(Object object); @Override int lastIndexOf(Object object); int sortIndex(Object object); int lastSortIndex(Object object); @Deprecated int indexOfSimulated(Object object); @Override boolean contains(Object object); @Override Iterator<E> iterator(); static final int STRICT_SORT_ORDER; static final int AVOID_MOVING_ELEMENTS; }