public class TArrayList<E> extends TAbstractList<E> implements TCloneable, TSerializable, TRandomAccess
modCount
Constructor and Description |
---|
TArrayList() |
TArrayList(int initialCapacity) |
TArrayList(TCollection<? extends E> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
void |
add(int index,
E element) |
boolean |
addAll(int index,
TCollection<? extends E> c) |
void |
clear() |
TObject |
clone0() |
void |
ensureCapacity(int minCapacity) |
E |
get(int index) |
E |
remove(int index) |
boolean |
remove(Object o) |
protected void |
removeRange(int start,
int end) |
void |
replaceAll(TUnaryOperator<E> operator) |
E |
set(int index,
E element) |
int |
size() |
void |
trimToSize() |
equals, equals0, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImpl
addAll, contains, containsAll, isEmpty, removeAll, retainAll, spliterator, stream, toArray, toArray
public TArrayList()
public TArrayList(int initialCapacity)
public TArrayList(TCollection<? extends E> c)
public void trimToSize()
public void ensureCapacity(int minCapacity)
public int size()
size
in interface TCollection<E>
public TObject clone0()
public boolean add(E element)
add
in interface TCollection<E>
add
in class TAbstractList<E>
public void add(int index, E element)
public E remove(int index)
public boolean remove(Object o)
remove
in interface TCollection<E>
remove
in class TAbstractCollection<E>
public void clear()
clear
in interface TCollection<E>
clear
in class TAbstractList<E>
public boolean addAll(int index, TCollection<? extends E> c)
protected void removeRange(int start, int end)
removeRange
in class TAbstractList<E>
public void replaceAll(TUnaryOperator<E> operator)
replaceAll
in interface TList<E>
Copyright © 2019. All rights reserved.