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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, TCollection<? extends E> c) boolean
addAll
(TCollection<? extends E> c) int
addAllAbsent
(Collection<? extends E> c) boolean
addIfAbsent
(E e) void
clear()
clone()
boolean
boolean
containsAll
(TCollection<?> c) boolean
get
(int index) int
hashCode()
int
int
boolean
isEmpty()
iterator()
int
lastIndexOf
(E e, int index) int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(TCollection<?> c) boolean
retainAll
(TCollection<?> c) int
size()
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, wait
Methods inherited from interface org.teavm.classlib.java.util.TCollection
removeIf, spliterator, stream, toArray
Methods 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:
add
in interfaceTCollection<E>
-
add
-
addAll
- Specified by:
addAll
in interfaceTCollection<E>
-
addAll
-
addAllAbsent
-
addIfAbsent
-
clear
public void clear()- Specified by:
clear
in interfaceTCollection<E>
-
clone
-
contains
- Specified by:
contains
in interfaceTCollection<E>
-
containsAll
- Specified by:
containsAll
in interfaceTCollection<E>
-
equals
-
get
-
hashCode
public int hashCode() -
indexOf
-
indexOf
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceTCollection<E>
-
iterator
-
lastIndexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceTList<E>
-
listIterator
- Specified by:
listIterator
in interfaceTList<E>
-
listIterator
- Specified by:
listIterator
in interfaceTList<E>
-
remove
-
remove
- Specified by:
remove
in interfaceTCollection<E>
-
removeAll
- Specified by:
removeAll
in interfaceTCollection<E>
-
retainAll
- Specified by:
retainAll
in interfaceTCollection<E>
-
set
-
size
public int size()- Specified by:
size
in interfaceTCollection<E>
-
subList
-
toArray
- Specified by:
toArray
in interfaceTCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceTCollection<E>
-
toString
-