Package com.tangosol.util
Class SubList<T>
java.lang.Object
com.tangosol.util.SubList<T>
- All Implemented Interfaces:
 Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
Implements a list which is based on another list, represents a sub-list of the underlying list.
- Author:
 - as 2010.12.04
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanget(int index) inthashCode()intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator 
- 
Constructor Details
- 
SubList
Construct a SubList from provided list.- Parameters:
 list- underlying listnStart- the index of first list element to include in sub-listnCount- the max size of created sub-list
 
 - 
 - 
Method Details
- 
size
public int size() - 
isEmpty
public boolean isEmpty() - 
contains
 - 
iterator
 - 
toArray
 - 
toArray
public <T> T[] toArray(T[] a)  - 
add
 - 
remove
 - 
containsAll
- Specified by:
 containsAllin interfaceCollection<T>- Specified by:
 containsAllin interfaceList<T>
 - 
addAll
 - 
addAll
 - 
removeAll
 - 
retainAll
 - 
clear
public void clear() - 
equals
 - 
hashCode
public int hashCode() - 
get
 - 
set
 - 
add
 - 
remove
 - 
indexOf
 - 
lastIndexOf
- Specified by:
 lastIndexOfin interfaceList<T>
 - 
listIterator
- Specified by:
 listIteratorin interfaceList<T>
 - 
listIterator
- Specified by:
 listIteratorin interfaceList<T>
 - 
subList
 
 -