public class TVector<E> extends TAbstractList<E> implements TList<E>, TRandomAccess, TCloneable, TSerializable
Modifier and Type | Field and Description |
---|---|
protected int |
capacityIncrement |
protected int |
elementCount |
protected Object[] |
elementData |
modCount
Constructor and Description |
---|
TVector() |
TVector(int capacity) |
TVector(int capacity,
int capacityIncrement) |
TVector(TCollection<? extends E> collection) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E object) |
void |
add(int location,
E object) |
boolean |
addAll(int location,
TCollection<? extends E> collection) |
boolean |
addAll(TCollection<? extends E> collection) |
void |
addElement(E object) |
int |
capacity() |
void |
clear() |
Object |
clone() |
boolean |
contains(Object object) |
boolean |
containsAll(TCollection<?> collection) |
void |
copyInto(Object[] elements) |
E |
elementAt(int location) |
TEnumeration<E> |
elements() |
void |
ensureCapacity(int minimumCapacity) |
boolean |
equals(Object object) |
E |
firstElement() |
E |
get(int location) |
int |
hashCode() |
int |
indexOf(Object object) |
int |
indexOf(Object object,
int location) |
void |
insertElementAt(E object,
int location) |
boolean |
isEmpty() |
E |
lastElement() |
int |
lastIndexOf(Object object) |
int |
lastIndexOf(Object object,
int location) |
E |
remove(int location) |
boolean |
remove(Object object) |
boolean |
removeAll(TCollection<?> collection) |
void |
removeAllElements() |
boolean |
removeElement(Object object) |
void |
removeElementAt(int location) |
protected void |
removeRange(int start,
int end) |
boolean |
retainAll(TCollection<?> collection) |
E |
set(int location,
E object) |
void |
setElementAt(E object,
int location) |
void |
setSize(int length) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] contents) |
String |
toString() |
void |
trimToSize() |
equals0, iterator, listIterator, listIterator, subList
finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImpl
listIterator, listIterator, replaceAll, sort, subList
spliterator, stream
protected int elementCount
protected Object[] elementData
protected int capacityIncrement
public TVector()
public TVector(int capacity)
public TVector(int capacity, int capacityIncrement)
public TVector(TCollection<? extends E> collection)
public void add(int location, E object)
public boolean add(E object)
add
in interface TCollection<E>
add
in class TAbstractList<E>
public boolean addAll(int location, TCollection<? extends E> collection)
public boolean addAll(TCollection<? extends E> collection)
addAll
in interface TCollection<E>
addAll
in class TAbstractCollection<E>
public void addElement(E object)
public int capacity()
public void clear()
clear
in interface TCollection<E>
clear
in class TAbstractList<E>
public boolean contains(Object object)
contains
in interface TCollection<E>
contains
in class TAbstractCollection<E>
public boolean containsAll(TCollection<?> collection)
containsAll
in interface TCollection<E>
containsAll
in class TAbstractCollection<E>
public void copyInto(Object[] elements)
public E elementAt(int location)
public TEnumeration<E> elements()
public void ensureCapacity(int minimumCapacity)
public boolean equals(Object object)
equals
in class TAbstractList<E>
public E firstElement()
public int hashCode()
hashCode
in class TAbstractList<E>
public int indexOf(Object object)
public int indexOf(Object object, int location)
public void insertElementAt(E object, int location)
public boolean isEmpty()
isEmpty
in interface TCollection<E>
isEmpty
in class TAbstractCollection<E>
public E lastElement()
public int lastIndexOf(Object object)
lastIndexOf
in interface TList<E>
lastIndexOf
in class TAbstractList<E>
public int lastIndexOf(Object object, int location)
public E remove(int location)
public boolean remove(Object object)
remove
in interface TCollection<E>
remove
in class TAbstractCollection<E>
public boolean removeAll(TCollection<?> collection)
removeAll
in interface TCollection<E>
removeAll
in class TAbstractCollection<E>
public void removeAllElements()
public boolean removeElement(Object object)
public void removeElementAt(int location)
protected void removeRange(int start, int end)
removeRange
in class TAbstractList<E>
public boolean retainAll(TCollection<?> collection)
retainAll
in interface TCollection<E>
retainAll
in class TAbstractCollection<E>
public void setElementAt(E object, int location)
public void setSize(int length)
public int size()
size
in interface TCollection<E>
public Object[] toArray()
toArray
in interface TCollection<E>
toArray
in class TAbstractCollection<E>
public <T> T[] toArray(T[] contents)
toArray
in interface TCollection<E>
toArray
in class TAbstractCollection<E>
public String toString()
toString
in class TAbstractCollection<E>
public void trimToSize()
Copyright © 2019. All rights reserved.