public class UnmodifiableVector extends Vector
capacityIncrement, elementCount, elementData
modCount
Constructor and Description |
---|
UnmodifiableVector(Vector v) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element) |
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
void |
addElement(Object obj) |
int |
capacity() |
void |
clear() |
Object |
clone() |
boolean |
contains(Object elem) |
boolean |
containsAll(Collection c) |
void |
copyInto(Object[] anArray) |
Object |
elementAt(int index) |
Enumeration |
elements() |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object o) |
Object |
firstElement() |
Object |
get(int index) |
int |
hashCode() |
int |
indexOf(Object elem) |
int |
indexOf(Object elem,
int index) |
void |
insertElementAt(Object obj,
int index) |
boolean |
isEmpty() |
Iterator |
iterator() |
Object |
lastElement() |
int |
lastIndexOf(Object elem) |
int |
lastIndexOf(Object elem,
int index) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
void |
removeAllElements() |
boolean |
removeElement(Object obj) |
void |
removeElementAt(int index) |
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
void |
setElementAt(Object obj,
int index) |
void |
setSize(int newSize) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
void |
trimToSize() |
removeRange
public UnmodifiableVector(Vector v)
public void trimToSize()
trimToSize
in class Vector
public void ensureCapacity(int minCapacity)
ensureCapacity
in class Vector
public int size()
public boolean isEmpty()
public Enumeration elements()
public boolean contains(Object elem)
public int indexOf(Object elem)
public int lastIndexOf(Object elem)
lastIndexOf
in interface List
lastIndexOf
in class Vector
public int lastIndexOf(Object elem, int index)
lastIndexOf
in class Vector
public Object firstElement()
firstElement
in class Vector
public Object lastElement()
lastElement
in class Vector
public void setElementAt(Object obj, int index)
setElementAt
in class Vector
public void removeElementAt(int index)
removeElementAt
in class Vector
public void insertElementAt(Object obj, int index)
insertElementAt
in class Vector
public void addElement(Object obj)
addElement
in class Vector
public boolean removeElement(Object obj)
removeElement
in class Vector
public void removeAllElements()
removeAllElements
in class Vector
public Object[] toArray()
public boolean add(Object o)
public boolean remove(Object o)
public void add(int index, Object element)
public Object remove(int index)
public void clear()
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
containsAll
in class Vector
public boolean addAll(Collection c)
public boolean removeAll(Collection c)
public boolean retainAll(Collection c)
public boolean addAll(int index, Collection c)
public boolean equals(Object o)
public int hashCode()
public List subList(int fromIndex, int toIndex)
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class Vector
public ListIterator listIterator(int index)
listIterator
in interface List
listIterator
in class Vector
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.