X
- Type of itempublic final class SolidList<X> extends CollectionEnvelope<T>
List
that is both synchronized and sticky.
Objects of this class are thread-safe.
Constructor and Description |
---|
SolidList(Collection<X> list)
Ctor.
|
SolidList(Iterable<X> items)
Ctor.
|
SolidList(Iterator<X> items)
Ctor.
|
SolidList(X... items)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
addAll(int index,
Collection<? extends T> items) |
boolean |
equals(Object obj) |
T |
get(int index) |
int |
hashCode() |
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) |
String |
toString() |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
@SafeVarargs public SolidList(X... items)
items
- The arraypublic SolidList(Collection<X> list)
list
- The iterablepublic final boolean addAll(int index, Collection<? extends T> items)
public final int lastIndexOf(Object item)
lastIndexOf
in interface List<T>
public final ListIterator<T> listIterator()
listIterator
in interface List<T>
public final ListIterator<T> listIterator(int index)
listIterator
in interface List<T>
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString
in class CollectionEnvelope<T>
Copyright © 2017–2018 Cactoos. All rights reserved.