@Test public void selectionGetIndexes_v3() { list.getSelection().addInterval(3, 7); int[] indexes = list.getSelection().getIndexes(); assertEquals("indexes.length", 5, indexes.length); assertEquals("indexes[0]", 3, indexes[0]); assertEquals("indexes[1]", 4, indexes[1]); assertEquals("indexes[2]", 5, indexes[2]); assertEquals("indexes[3]", 6, indexes[3]); assertEquals("indexes[4]", 7, indexes[4]); indexes = list.getSelection().getIndexes(0, 9); assertEquals("indexes.length", 5, indexes.length); assertEquals("indexes[0]", 3, indexes[0]); assertEquals("indexes[1]", 4, indexes[1]); assertEquals("indexes[2]", 5, indexes[2]); assertEquals("indexes[3]", 6, indexes[3]); assertEquals("indexes[4]", 7, indexes[4]); indexes = list.getSelection().getIndexes(3, 7); assertEquals("indexes.length", 5, indexes.length); assertEquals("indexes[0]", 3, indexes[0]); assertEquals("indexes[1]", 4, indexes[1]); assertEquals("indexes[2]", 5, indexes[2]); assertEquals("indexes[3]", 6, indexes[3]); assertEquals("indexes[4]", 7, indexes[4]); indexes = list.getSelection().getIndexes(4, 6); assertEquals("indexes.length", 3, indexes.length); assertEquals("indexes[0]", 4, indexes[0]); assertEquals("indexes[1]", 5, indexes[1]); assertEquals("indexes[2]", 6, indexes[2]); indexes = list.getSelection().getIndexes(0, 3); assertEquals("indexes.length", 1, indexes.length); assertEquals("indexes[0]", 3, indexes[0]); indexes = list.getSelection().getIndexes(0, 2); assertEquals("indexes.length", 0, indexes.length); indexes = list.getSelection().getIndexes(8, 9); assertEquals("indexes.length", 0, indexes.length); }
public Selection<T> getSelection() { return this.selection; }
ListPM extends AbstractPM implements IListPM<T> { public Selection<T> getSelection() { return this.selection; } }
ListPM extends AbstractPM implements IListPM<T> { public Selection<T> getSelection() { return this.selection; } ListPM();  ListPM(int initialCapacity);  ListPM(ArrayList<Entry> list); protected  ListPM(List<Entry> list); }
ListPM extends AbstractPM implements IListPM<T> { public Selection<T> getSelection() { return this.selection; } ListPM();  ListPM(int initialCapacity);  ListPM(ArrayList<Entry> list); protected  ListPM(List<Entry> list); Sorter getSorter(); void setSorter(Sorter sorter); boolean isRevalidateElementsOnChangeEnabled(); void setRevalidateElementsOnChangeEnabled(boolean enabled); void addListListener(ListListener l); void removeListListener(ListListener l); void revalidateElements(); void replace(T oldElement, T newElement); void replace(int index, T newElement); void add(T element); void add(int index, T element); void addAll(Collection<T> col); boolean contains(T element); boolean containsAll(Collection<T> col); void clear(); boolean removeAll(Collection<? extends T> col); boolean remove(T element); T removeAt(int index); void swap(int indexA, int indexB); void swap(T elemA, T elemB); void reverse(); void sortBy(boolean ascending, Path... paths); void sortBy(Collection<SortKey> newSortKeys); void sortBy(SortKey... newSortKeys); Collection<SortKey> getSortKeys(); T getAt(int index); Collection<T> toCollection(); Object[] toArray(); Selection<T> getSelection(); int indexOf(T element); int[] indicesOf(Collection<? extends T> col); int size(); boolean isEmpty(); Iterator<T> iterator(); ListIterator<T> listIterator(final int index); }
ListPM extends AbstractPM implements IListPM<T> { public Selection<T> getSelection() { return this.selection; } ListPM();  ListPM(int initialCapacity);  ListPM(ArrayList<Entry> list); protected  ListPM(List<Entry> list); Sorter getSorter(); void setSorter(Sorter sorter); boolean isRevalidateElementsOnChangeEnabled(); void setRevalidateElementsOnChangeEnabled(boolean enabled); void addListListener(ListListener l); void removeListListener(ListListener l); void revalidateElements(); void replace(T oldElement, T newElement); void replace(int index, T newElement); void add(T element); void add(int index, T element); void addAll(Collection<T> col); boolean contains(T element); boolean containsAll(Collection<T> col); void clear(); boolean removeAll(Collection<? extends T> col); boolean remove(T element); T removeAt(int index); void swap(int indexA, int indexB); void swap(T elemA, T elemB); void reverse(); void sortBy(boolean ascending, Path... paths); void sortBy(Collection<SortKey> newSortKeys); void sortBy(SortKey... newSortKeys); Collection<SortKey> getSortKeys(); T getAt(int index); Collection<T> toCollection(); Object[] toArray(); Selection<T> getSelection(); int indexOf(T element); int[] indicesOf(Collection<? extends T> col); int size(); boolean isEmpty(); Iterator<T> iterator(); ListIterator<T> listIterator(final int index);  }