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 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 TAbstractList
add, add, addAll, equals, equals0, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subListMethods inherited from class TAbstractCollection
addAll, contains, containsAll, isEmpty, remove, toArray, toArray, toStringMethods inherited from interface TCollection
addAll, contains, containsAll, isEmpty, remove, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface 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>
-