org.omnaest.utils.structure.collection.list
Class ListAbstract.ListAbstractSublist<E>
java.lang.Object
org.omnaest.utils.structure.collection.CollectionAbstract<E>
org.omnaest.utils.structure.collection.list.ListAbstract<E>
org.omnaest.utils.structure.collection.list.ListAbstract.ListAbstractSublist<E>
- All Implemented Interfaces:
- Serializable, Iterable<E>, Collection<E>, Deque<E>, List<E>, Queue<E>
- Direct Known Subclasses:
- SortedListAbstract.SortedListAbstractSublist
- Enclosing class:
- ListAbstract<E>
protected static class ListAbstract.ListAbstractSublist<E>
- extends ListAbstract<E>
Sublist implementation for the ListAbstract including the fromIndex and excluding the toIndex
- Author:
- Omnaest
- See Also:
- Serialized Form
| 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 |
fromIndex
protected int fromIndex
toIndex
protected int toIndex
parentList
protected List<E> parentList
ListAbstract.ListAbstractSublist
public ListAbstract.ListAbstractSublist(List<E> parentList,
int fromIndex,
int toIndex)
- Parameters:
parentList - fromIndex - toIndex - - See Also:
ListAbstract.ListAbstractSublist
add
public boolean add(E e)
add
public void add(int index,
E element)
get
public E get(int index)
indexOf
public int indexOf(Object o)
lastIndexOf
public int lastIndexOf(Object o)
remove
public E remove(int index)
set
public E set(int index,
E element)
size
public int size()
subList
public List<E> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<E>- Overrides:
subList in class ListAbstract<E>
Copyright © 2013. All Rights Reserved.