Package org.teavm.classlib.java.util
Class TTemplateCollections.ImmutableArrayList<T>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractCollection<T>
org.teavm.classlib.java.util.TAbstractList<T>
org.teavm.classlib.java.util.TTemplateCollections.ImmutableArrayList<T>
- All Implemented Interfaces:
RandomAccess,TIterable<T>,TCollection<T>,TList<T>,TSequencedCollection<T>
- Enclosing class:
TTemplateCollections
public static class TTemplateCollections.ImmutableArrayList<T>
extends TAbstractList<T>
implements RandomAccess
-
Field Summary
Fields inherited from class org.teavm.classlib.java.util.TAbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionImmutableArrayList(TCollection<? extends T> collection) ImmutableArrayList(T... list) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()get(int index) remove(int index) booleanremoveAll(TCollection<?> c) booleanprotected voidremoveRange(int start, int end) booleanretainAll(TCollection<?> c) intsize()Methods inherited from class org.teavm.classlib.java.util.TAbstractList
add, add, addAll, equals, equals0, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subListMethods inherited from class org.teavm.classlib.java.util.TAbstractCollection
addAll, contains, containsAll, isEmpty, remove, toArray, toArray, toStringMethods inherited from class org.teavm.classlib.java.lang.TObject
clone, finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImplMethods inherited from interface org.teavm.classlib.java.util.TCollection
addAll, contains, containsAll, isEmpty, remove, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface org.teavm.classlib.java.util.TList
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort
-
Constructor Details
-
ImmutableArrayList
-
ImmutableArrayList
-
-
Method Details
-
get
-
size
public int size()- Specified by:
sizein interfaceTCollection<T>
-
clear
public void clear()- Specified by:
clearin interfaceTCollection<T>- Overrides:
clearin classTAbstractList<T>
-
remove
- Specified by:
removein interfaceTList<T>- Overrides:
removein classTAbstractList<T>
-
removeRange
protected void removeRange(int start, int end) - Overrides:
removeRangein classTAbstractList<T>
-
removeAll
- Specified by:
removeAllin interfaceTCollection<T>- Overrides:
removeAllin classTAbstractCollection<T>
-
removeIf
- Specified by:
removeIfin interfaceTCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceTCollection<T>- Overrides:
retainAllin classTAbstractCollection<T>
-