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>
- 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperCollection
m_colDelegate
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractWrapperList()Default constructor.protectedAbstractWrapperList(List<E> list)Create an AbstractWrapperList which delegates to the specified List.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)booleanaddAll(int index, Collection<? extends E> c)Eget(int index)protected List<E>getDelegate()Return the List to which all operations should be delegated to.intindexOf(Object o)intlastIndexOf(Object o)ListIterator<E>listIterator()ListIterator<E>listIterator(int index)Eremove(int index)voidreplaceAll(UnaryOperator<E> operator)Eset(int index, E element)voidsort(Comparator<? super E> c)List<E>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
-
-
-
-
Method Detail
-
getDelegate
protected List<E> getDelegate()
Return the List to which all operations should be delegated to.- Overrides:
getDelegatein classWrapperCollections.AbstractWrapperCollection<E>- Returns:
- the wrapped List
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIteratorin interfaceList<E>
-
replaceAll
public void replaceAll(UnaryOperator<E> operator)
- Specified by:
replaceAllin interfaceList<E>
-
sort
public void sort(Comparator<? super E> c)
-
-