X
- Type of itempublic final class StickyList<X> extends Object implements List<X>
There is no thread-safety guarantee.
Constructor and Description |
---|
StickyList(Collection<X> list)
Ctor.
|
StickyList(Iterable<X> items)
Ctor.
|
StickyList(X... items)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
X element) |
boolean |
add(X element) |
boolean |
addAll(Collection<? extends X> collection) |
boolean |
addAll(int index,
Collection<? extends X> collection) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
X |
get(int index) |
int |
indexOf(Object object) |
boolean |
isEmpty() |
Iterator<X> |
iterator() |
int |
lastIndexOf(Object object) |
ListIterator<X> |
listIterator() |
ListIterator<X> |
listIterator(int index) |
X |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
X |
set(int index,
X element) |
int |
size() |
List<X> |
subList(int fromindex,
int toindex) |
Object[] |
toArray() |
<Y> Y[] |
toArray(Y[] array) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
@SafeVarargs public StickyList(X... items)
items
- The arraypublic StickyList(Collection<X> list)
list
- The iterablepublic int size()
public boolean isEmpty()
public boolean contains(Object object)
public Object[] toArray()
public <Y> Y[] toArray(Y[] array)
public boolean add(X element)
public boolean remove(Object object)
public boolean containsAll(Collection<?> collection)
containsAll
in interface Collection<X>
containsAll
in interface List<X>
public boolean addAll(Collection<? extends X> collection)
public boolean addAll(int index, Collection<? extends X> collection)
public boolean removeAll(Collection<?> collection)
public boolean retainAll(Collection<?> collection)
public void clear()
public int lastIndexOf(Object object)
lastIndexOf
in interface List<X>
public ListIterator<X> listIterator()
listIterator
in interface List<X>
public ListIterator<X> listIterator(int index)
listIterator
in interface List<X>
Copyright © 2017 Cactoos. All rights reserved.