Package org.cactoos.list
Class ListEnvelope<T>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<X>
-
- org.cactoos.collection.CollectionEnvelope<T>
-
- org.cactoos.list.ListEnvelope<T>
-
- Type Parameters:
T
- Element type
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
public abstract class ListEnvelope<T> extends CollectionEnvelope<T> implements List<T>
List
envelope.There is no thread-safety guarantee.
- Since:
- 0.23
-
-
Constructor Summary
Constructors Constructor Description ListEnvelope(List<T> list)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, T element)
boolean
addAll(int index, Collection<? extends T> items)
T
get(int index)
int
indexOf(Object item)
int
lastIndexOf(Object item)
ListIterator<T>
listIterator()
ListIterator<T>
listIterator(int index)
T
remove(int index)
T
set(int index, T element)
List<T>
subList(int start, int end)
-
Methods inherited from class org.cactoos.collection.CollectionEnvelope
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class org.cactoos.iterable.IterableEnvelope
equals, hashCode, iterator, 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
-
addAll
public final boolean addAll(int index, Collection<? extends T> items)
-
lastIndexOf
public final int lastIndexOf(Object item)
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
public final ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
public final ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
-
-