Package org.dashbuilder.dataset.sort
Class SortedList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList
-
- org.dashbuilder.dataset.sort.SortedList
-
- All Implemented Interfaces:
Iterable,Collection,List
public class SortedList extends AbstractList
An unmodifiable list which provides a lightweight read-only access to an existing list but applying a pre-established order.The order is specified by a list of integers containing the order of the elements.
-
-
Constructor Summary
Constructors Constructor Description SortedList()SortedList(List realList, List<Integer> rows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(int index)introw(int index)intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
row
public int row(int index)
-
get
public Object get(int index)
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
size
public int size()
- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
-