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 class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teavm.classlib.java.util.TCollection
removeIf, spliterator, stream, toArrayMethods inherited from interface org.teavm.classlib.java.util.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
public int 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
-