Java:Vector
De W3API
Contenido |
[editar] Descripción
El Vector representa a un array de objetos.
[editar] Sintaxis
public class Vector<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, Serializable
[editar] Ejemplo
Vector<String> mivector = new Vector<String>();
mivector.add("Elemento Uno");
[editar] Campos
[editar] Constructores
[editar] Métodos
- add()
- addAll()
- addElement()
- capacity()
- clear()
- clone()
- contains()
- containsAll()
- copyInto()
- elementAt()
- elements()
- ensureCapacity()
- equals()
- firstElement()
- get()
- hashCode()
- indexOf()
- insertElementAt()
- isEmpty()
- lastElement()
- lastIndexOf()
- remove()
- removeAll()
- removeAllElements()
- removeElement()
- removeElementAt()
- removeRange()
- retainAll()
- set()
- setElementAt()
- setSize()
- size()
- subList()
- toArray()
- toString()
- trimToSize()