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 protected
AbstractWrapperList()
Default constructor.protected
AbstractWrapperList(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 void
add(int index, E element)
boolean
addAll(int index, Collection<? extends E> c)
E
get(int index)
protected List<E>
getDelegate()
Return the List to which all operations should be delegated to.int
indexOf(Object o)
int
lastIndexOf(Object o)
ListIterator<E>
listIterator()
ListIterator<E>
listIterator(int index)
E
remove(int index)
void
replaceAll(UnaryOperator<E> operator)
E
set(int index, E element)
void
sort(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:
getDelegate
in 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:
lastIndexOf
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfaceList<E>
-
replaceAll
public void replaceAll(UnaryOperator<E> operator)
- Specified by:
replaceAll
in interfaceList<E>
-
sort
public void sort(Comparator<? super E> c)
-
-