|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.collection.list.decorator.ListDispatcher<E>
org.omnaest.utils.structure.collection.list.sorted.SortedListDispatcher<E>
E - public abstract class SortedListDispatcher<E>
Similar to ListDispatcher but for SortedLists
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.omnaest.utils.structure.collection.list.decorator.ListDispatcher |
|---|
ListDispatcher.ListDispatchControl<E> |
| Field Summary |
|---|
| Fields inherited from class org.omnaest.utils.structure.collection.list.decorator.ListDispatcher |
|---|
listDispatchControl |
| Constructor Summary | |
|---|---|
SortedListDispatcher(SortedList<E>... lists)
|
|
| Method Summary | |
|---|---|
Comparator<? super E> |
comparator()
Returns the Comparator used by this SortedList |
E |
first()
Returns the first (lowest) element currently in this SortedList. |
protected SortedSplitableList<E> |
getList()
|
SortedList<E> |
headList(E toElement)
Returns a view to the current SortedList which starts at the beginning and ends by the given element which itself is
excluded from the head list. |
E |
last()
Returns the last (highest) element currently in this SortedList. |
SortedList<E> |
splitAt(int index)
Splits the current SortedList at the given index position. |
SortedList<E> |
subList(E fromElement,
E toElement)
Returns a sublist view of the current SortedList starting by the given fromElement which will be included in
the sublist and ending by the given toElement which will be excluded from the sublist. |
SortedList<E> |
subList(int fromIndex,
int toIndex)
Similar to List#subList(int, int) |
SortedList<E> |
tailList(E fromElement)
Returns a view to the current SortedList starting by the given element up to the end including the given element. |
| Methods inherited from class org.omnaest.utils.structure.collection.list.decorator.ListDispatcher |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.omnaest.utils.structure.collection.list.sorted.SortedList |
|---|
add, add, set |
| Methods inherited from interface java.util.List |
|---|
addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
|---|
public SortedListDispatcher(SortedList<E>... lists)
lists - SortedListDispatcher| Method Detail |
|---|
protected SortedSplitableList<E> getList()
getList in class ListDispatcher<E>public Comparator<? super E> comparator()
SortedListComparator used by this SortedList
comparator in interface SortedList<E>
public SortedList<E> subList(E fromElement,
E toElement)
SortedListSortedList starting by the given fromElement which will be included in
the sublist and ending by the given toElement which will be excluded from the sublist.
subList in interface SortedList<E>fromElement - lower point (inclusive)toElement - higher pint (exclusive)public SortedList<E> headList(E toElement)
SortedListSortedList which starts at the beginning and ends by the given element which itself is
excluded from the head list.
headList in interface SortedList<E>toElement - end element (exclusive)
public SortedList<E> tailList(E fromElement)
SortedListSortedList starting by the given element up to the end including the given element.
tailList in interface SortedList<E>public E first()
SortedListSortedList.
first in interface SortedList<E>public E last()
SortedListSortedList.
last in interface SortedList<E>public SortedList<E> splitAt(int index)
SortedSplitableListSortedList at the given index position. The current List will retain all elements up to
this index position excluding the index position itself. SortedList will hold all elements starting and including the one at the given index position till the
end of the current List.
splitAt in interface SortedSplitableList<E>
public SortedList<E> subList(int fromIndex,
int toIndex)
SortedList
subList in interface List<E>subList in interface SortedList<E>subList in class ListDispatcher<E>List.subList(int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||