Package io.agroal.pool.util
Class StampedCopyOnWriteArrayList<T>
java.lang.Object
io.agroal.pool.util.StampedCopyOnWriteArrayList<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
- Author:
- Luis Barreiro
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> c) boolean
addAll
(Collection<? extends T> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) void
get
(int index) int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
void
replaceAll
(UnaryOperator<T> operator) boolean
retainAll
(Collection<?> c) int
size()
void
sort
(Comparator<? super T> c) stream()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<E> E[]
toArray
(E[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
toArray
-
Constructor Details
-
StampedCopyOnWriteArrayList
-
-
Method Details
-
get
-
size
public int size() -
isEmpty
public boolean isEmpty() -
set
-
add
-
removeLast
-
remove
-
remove
-
clear
public void clear() -
iterator
-
addAll
-
contains
-
indexOf
-
forEach
-
toArray
-
toArray
public <E> E[] toArray(E[] a) -
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
-
removeAll
-
retainAll
-
add
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
subList
-
stream
- Specified by:
stream
in interfaceCollection<T>
-
parallelStream
- Specified by:
parallelStream
in interfaceCollection<T>
-
spliterator
- Specified by:
spliterator
in interfaceCollection<T>
- Specified by:
spliterator
in interfaceIterable<T>
- Specified by:
spliterator
in interfaceList<T>
-
removeIf
- Specified by:
removeIf
in interfaceCollection<T>
-
replaceAll
- Specified by:
replaceAll
in interfaceList<T>
-
sort
-