|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.collection.CollectionAbstract<E>
org.omnaest.utils.structure.collection.list.ListAbstract<E>
org.omnaest.utils.structure.collection.list.ListAbstract.ListAbstractSublist<E>
org.omnaest.utils.structure.collection.list.sorted.SortedListAbstract.SortedListAbstractSublist<E>
E - protected static class SortedListAbstract.SortedListAbstractSublist<E>
Sublist implementation for SortedListAbstract
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.omnaest.utils.structure.collection.list.ListAbstract |
|---|
ListAbstract.ListAbstractSublist<E> |
| Field Summary |
|---|
| Fields inherited from class org.omnaest.utils.structure.collection.list.ListAbstract.ListAbstractSublist |
|---|
fromIndex, parentList, toIndex |
| Constructor Summary | |
|---|---|
SortedListAbstract.SortedListAbstractSublist(SortedList<E> parentList,
int fromIndex,
int toIndex)
|
|
| Method Summary | |
|---|---|
boolean |
add(E element)
This does add the given element at the right order position. |
Comparator<? super E> |
comparator()
Returns the Comparator used by this SortedList |
E |
first()
Returns the first (lowest) element currently in this SortedList. |
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> |
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.ListAbstract.ListAbstractSublist |
|---|
add, get, indexOf, lastIndexOf, remove, set, size |
| Methods inherited from class org.omnaest.utils.structure.collection.list.ListAbstract |
|---|
addAll, addFirst, addLast, clear, contains, descendingIterator, element, getFirst, getLast, isValidIndex, iterator, listIterator, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence |
| Methods inherited from class org.omnaest.utils.structure.collection.CollectionAbstract |
|---|
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, 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, 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 SortedListAbstract.SortedListAbstractSublist(SortedList<E> parentList,
int fromIndex,
int toIndex)
parentList - fromIndex - toIndex - SortedListAbstract.SortedListAbstractSublist| Method Detail |
|---|
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> subList(int fromIndex,
int toIndex)
SortedList
subList in interface List<E>subList in interface SortedList<E>subList in class ListAbstract.ListAbstractSublist<E>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 boolean add(E element)
SortedListCollection
interface, since the new element is not appended to the Collection.
add in interface Collection<E>add in interface Deque<E>add in interface List<E>add in interface Queue<E>add in interface SortedList<E>add in class ListAbstract.ListAbstractSublist<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||