Package org.teavm.classlib.java.util
Class TVector<E>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractCollection<E>
org.teavm.classlib.java.util.TAbstractList<E>
org.teavm.classlib.java.util.TVector<E>
- All Implemented Interfaces:
TSerializable,TCloneable,TIterable<E>,TCollection<E>,TList<E>,TRandomAccess,TSequencedCollection<E>
- Direct Known Subclasses:
TStack
public class TVector<E>
extends TAbstractList<E>
implements TList<E>, TRandomAccess, TCloneable, TSerializable
-
Field Summary
FieldsFields inherited from class org.teavm.classlib.java.util.TAbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int location, TCollection<? extends E> collection) booleanaddAll(TCollection<? extends E> collection) voidaddElement(E object) intcapacity()voidclear()clone()booleanbooleancontainsAll(TCollection<?> collection) voidelementAt(int location) elements()voidensureCapacity(int minimumCapacity) booleanget(int location) inthashCode()intintvoidinsertElementAt(E object, int location) booleanisEmpty()intlastIndexOf(Object object) intlastIndexOf(Object object, int location) remove(int location) booleanbooleanremoveAll(TCollection<?> collection) voidbooleanremoveElement(Object object) voidremoveElementAt(int location) protected voidremoveRange(int start, int end) booleanretainAll(TCollection<?> collection) voidsetElementAt(E object, int location) voidsetSize(int length) intsize()Object[]toArray()<T> T[]toArray(T[] contents) toString()voidMethods inherited from class org.teavm.classlib.java.util.TAbstractList
equals0, iterator, listIterator, listIterator, subListMethods inherited from class org.teavm.classlib.java.lang.TObject
finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImplMethods 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, listIterator, listIterator, removeFirst, removeLast, replaceAll, reversed, sort, subList
-
Field Details
-
elementCount
protected int elementCount -
elementData
-
capacityIncrement
protected int capacityIncrement
-
-
Constructor Details
-
TVector
public TVector() -
TVector
public TVector(int capacity) -
TVector
public TVector(int capacity, int capacityIncrement) -
TVector
-
-
Method Details
-
add
-
add
- Specified by:
addin interfaceTCollection<E>- Overrides:
addin classTAbstractList<E>
-
addAll
-
addAll
- Specified by:
addAllin interfaceTCollection<E>- Overrides:
addAllin classTAbstractCollection<E>
-
addElement
-
capacity
public int capacity() -
clear
public void clear()- Specified by:
clearin interfaceTCollection<E>- Overrides:
clearin classTAbstractList<E>
-
clone
-
contains
- Specified by:
containsin interfaceTCollection<E>- Overrides:
containsin classTAbstractCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceTCollection<E>- Overrides:
containsAllin classTAbstractCollection<E>
-
copyInto
-
elementAt
-
elements
-
ensureCapacity
public void ensureCapacity(int minimumCapacity) -
equals
- Overrides:
equalsin classTAbstractList<E>
-
firstElement
-
get
-
hashCode
public int hashCode()- Overrides:
hashCodein classTAbstractList<E>
-
indexOf
-
indexOf
-
insertElementAt
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceTCollection<E>- Overrides:
isEmptyin classTAbstractCollection<E>
-
lastElement
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceTList<E>- Overrides:
lastIndexOfin classTAbstractList<E>
-
lastIndexOf
-
remove
-
remove
- Specified by:
removein interfaceTCollection<E>- Overrides:
removein classTAbstractCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceTCollection<E>- Overrides:
removeAllin classTAbstractCollection<E>
-
removeAllElements
public void removeAllElements() -
removeElement
-
removeElementAt
public void removeElementAt(int location) -
removeRange
protected void removeRange(int start, int end) - Overrides:
removeRangein classTAbstractList<E>
-
retainAll
- Specified by:
retainAllin interfaceTCollection<E>- Overrides:
retainAllin classTAbstractCollection<E>
-
set
-
setElementAt
-
setSize
public void setSize(int length) -
size
public int size()- Specified by:
sizein interfaceTCollection<E>
-
toArray
- Specified by:
toArrayin interfaceTCollection<E>- Overrides:
toArrayin classTAbstractCollection<E>
-
toArray
public <T> T[] toArray(T[] contents) - Specified by:
toArrayin interfaceTCollection<E>- Overrides:
toArrayin classTAbstractCollection<E>
-
toString
- Overrides:
toStringin classTAbstractCollection<E>
-
trimToSize
public void trimToSize()
-