Class TCopyOnWriteArrayList<E>
java.lang.Object
org.teavm.classlib.java.util.concurrent.TCopyOnWriteArrayList<E>
- All Implemented Interfaces:
Serializable, Cloneable, RandomAccess, TIterable<E>, TCollection<E>, TList<E>, TSequencedCollection<E>
public class TCopyOnWriteArrayList<E>
extends Object
implements TList<E>, RandomAccess, Cloneable, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTCopyOnWriteArrayList(E[] array) TCopyOnWriteArrayList(Collection<? extends E> c) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, TCollection<? extends E> c) booleanaddAll(TCollection<? extends E> c) intaddAllAbsent(Collection<? extends E> c) booleanaddIfAbsent(E e) voidclear()clone()booleanbooleancontainsAll(TCollection<?> c) booleanget(int index) inthashCode()intintbooleanisEmpty()iterator()intlastIndexOf(E e, int index) intlistIterator(int index) remove(int index) booleanbooleanremoveAll(TCollection<?> c) booleanretainAll(TCollection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from interface TCollection
removeIf, spliterator, stream, toArrayMethods inherited from interface TList
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort
-
Constructor Details
-
TCopyOnWriteArrayList
public TCopyOnWriteArrayList() -
TCopyOnWriteArrayList
-
TCopyOnWriteArrayList
-
-
Method Details
-
add
- Specified by:
addin interfaceTCollection<E>
-
add
-
addAll
- Specified by:
addAllin interfaceTCollection<E>
-
addAll
-
addAllAbsent
-
addIfAbsent
-
clear
public void clear()- Specified by:
clearin interfaceTCollection<E>
-
clone
-
contains
- Specified by:
containsin interfaceTCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceTCollection<E>
-
equals
-
get
-
hashCode
-
indexOf
-
indexOf
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceTCollection<E>
-
iterator
-
lastIndexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceTList<E>
-
listIterator
- Specified by:
listIteratorin interfaceTList<E>
-
listIterator
- Specified by:
listIteratorin interfaceTList<E>
-
remove
-
remove
- Specified by:
removein interfaceTCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceTCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceTCollection<E>
-
set
-
size
public int size()- Specified by:
sizein interfaceTCollection<E>
-
subList
-
toArray
- Specified by:
toArrayin interfaceTCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceTCollection<E>
-
toString
-