Package com.tangosol.util
Class WrapperCollections.AbstractWrapperList<E>
java.lang.Object
com.tangosol.util.WrapperCollections.AbstractWrapperCollection<E>
com.tangosol.util.WrapperCollections.AbstractWrapperList<E>
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,List<E>
,SequencedCollection<E>
- Direct Known Subclasses:
ImmutableArrayList.ListView
,ImmutableMultiList.ListView
- Enclosing class:
WrapperCollections
public abstract static class WrapperCollections.AbstractWrapperList<E>
extends WrapperCollections.AbstractWrapperCollection<E>
implements List<E>
List implementation which delegates all calls to another List.
- See Also:
-
Field Summary
Fields inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperCollection
m_colDelegate
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor.protected
AbstractWrapperList
(List<E> list) Create an AbstractWrapperList which delegates to the specified List. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addAll
(int index, Collection<? extends E> c) get
(int index) Return the List to which all operations should be delegated to.int
int
listIterator
(int index) remove
(int index) void
replaceAll
(UnaryOperator<E> operator) void
sort
(Comparator<? super E> c) subList
(int fromIndex, int toIndex) Methods inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperCollection
add, addAll, clear, contains, containsAll, equals, forEach, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
AbstractWrapperList
protected AbstractWrapperList()Default constructor. -
AbstractWrapperList
Create an AbstractWrapperList which delegates to the specified List.- Parameters:
list
- the List to delegate all calls to
-
-
Method Details
-
getDelegate
Return the List to which all operations should be delegated to.- Overrides:
getDelegate
in classWrapperCollections.AbstractWrapperCollection<E>
- Returns:
- the wrapped List
-
addAll
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
replaceAll
- Specified by:
replaceAll
in interfaceList<E>
-
sort
-
subList
-