org.omnaest.utils.structure.collection.list.sorted
Interface SortedSplitableList<E>

Type Parameters:
E -
All Superinterfaces:
Collection<E>, Iterable<E>, List<E>, SortedList<E>
All Known Implementing Classes:
InsertionSortedList, SortedListAbstract, SortedListDispatcher, SortedListDispatcherSizeBased, TreeList

public interface SortedSplitableList<E>
extends SortedList<E>

A special SortedList which allows to split the whole List into two.

Author:
Omnaest
See Also:
splitAt(int)

Method Summary
 SortedList<E> splitAt(int index)
          Splits the current SortedList at the given index position.
 
Methods inherited from interface org.omnaest.utils.structure.collection.list.sorted.SortedList
add, add, comparator, first, headList, last, set, subList, subList, tailList
 
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
 

Method Detail

splitAt

SortedList<E> splitAt(int index)
Splits the current SortedList at the given index position. The current List will retain all elements up to this index position excluding the index position itself.
The returned SortedList will hold all elements starting and including the one at the given index position till the end of the current List.

Returns:


Copyright © 2013. All Rights Reserved.