public class LockableList<S> extends Lockable implements List<S>
Constructor and Description |
---|
LockableList(List<S> list) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
S element) |
boolean |
add(S e) |
boolean |
addAll(Collection<? extends S> c) |
boolean |
addAll(int index,
Collection<? extends S> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
void |
forEach(Consumer<? super S> action) |
S |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<S> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<S> |
listIterator() |
ListIterator<S> |
listIterator(int index) |
Stream<S> |
parallelStream() |
S |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super S> filter) |
void |
replaceAll(UnaryOperator<S> operator) |
boolean |
retainAll(Collection<?> c) |
S |
set(int index,
S element) |
int |
size() |
void |
sort(Comparator<? super S> c) |
Spliterator<S> |
spliterator() |
Stream<S> |
stream() |
List<S> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
getDumpRateLimit, withLock
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(S e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<S>
containsAll
in interface List<S>
public boolean addAll(Collection<? extends S> c)
public boolean addAll(int index, Collection<? extends S> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void replaceAll(UnaryOperator<S> operator)
replaceAll
in interface List<S>
public boolean removeIf(Predicate<? super S> filter)
removeIf
in interface Collection<S>
public void sort(Comparator<? super S> c)
public void clear()
public boolean equals(Object o)
public int hashCode()
public Stream<S> stream()
stream
in interface Collection<S>
public Stream<S> parallelStream()
parallelStream
in interface Collection<S>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<S>
public ListIterator<S> listIterator()
listIterator
in interface List<S>
public ListIterator<S> listIterator(int index)
listIterator
in interface List<S>
public Spliterator<S> spliterator()
spliterator
in interface Iterable<S>
spliterator
in interface Collection<S>
spliterator
in interface List<S>
Copyright © 2004–2021. All rights reserved.