com.planet_ink.coffee_mud.core.collections
Class ReadOnlyVector<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<T>
              extended by com.planet_ink.coffee_mud.core.collections.ReadOnlyVector<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

public final class ReadOnlyVector<T>
extends java.util.Vector<T>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ReadOnlyVector()
           
ReadOnlyVector(java.util.Enumeration<T> E)
           
ReadOnlyVector(int size)
           
ReadOnlyVector(java.util.Iterator<T> E)
           
ReadOnlyVector(java.util.List<T> E)
           
ReadOnlyVector(java.util.Set<T> E)
           
ReadOnlyVector(T E)
           
ReadOnlyVector(T[] E)
           
 
Method Summary
 void add(int index, T element)
           
 boolean add(T t)
           
 boolean addAll(java.util.Collection<? extends T> c)
           
 boolean addAll(int index, java.util.Collection<? extends T> c)
           
 void addElement(T t)
           
 void clear()
           
 void insertElementAt(T obj, int index)
           
 T remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean removeElement(java.lang.Object obj)
           
 void removeElementAt(int index)
           
 
Methods inherited from class java.util.Vector
capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

ReadOnlyVector

public ReadOnlyVector()

ReadOnlyVector

public ReadOnlyVector(java.util.List<T> E)

ReadOnlyVector

public ReadOnlyVector(T[] E)

ReadOnlyVector

public ReadOnlyVector(T E)

ReadOnlyVector

public ReadOnlyVector(java.util.Enumeration<T> E)

ReadOnlyVector

public ReadOnlyVector(java.util.Iterator<T> E)

ReadOnlyVector

public ReadOnlyVector(java.util.Set<T> E)

ReadOnlyVector

public ReadOnlyVector(int size)
Method Detail

add

public boolean add(T t)
Specified by:
add in interface java.util.Collection<T>
Specified by:
add in interface java.util.List<T>
Overrides:
add in class java.util.Vector<T>

addElement

public void addElement(T t)
Overrides:
addElement in class java.util.Vector<T>

removeElementAt

public void removeElementAt(int index)
Overrides:
removeElementAt in class java.util.Vector<T>

removeElement

public boolean removeElement(java.lang.Object obj)
Overrides:
removeElement in class java.util.Vector<T>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<T>
Specified by:
remove in interface java.util.List<T>
Overrides:
remove in class java.util.Vector<T>

add

public void add(int index,
                T element)
Specified by:
add in interface java.util.List<T>
Overrides:
add in class java.util.Vector<T>

remove

public T remove(int index)
Specified by:
remove in interface java.util.List<T>
Overrides:
remove in class java.util.Vector<T>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<T>
Specified by:
clear in interface java.util.List<T>
Overrides:
clear in class java.util.Vector<T>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<T>
Specified by:
removeAll in interface java.util.List<T>
Overrides:
removeAll in class java.util.Vector<T>

insertElementAt

public void insertElementAt(T obj,
                            int index)
Overrides:
insertElementAt in class java.util.Vector<T>

addAll

public boolean addAll(java.util.Collection<? extends T> c)
Specified by:
addAll in interface java.util.Collection<T>
Specified by:
addAll in interface java.util.List<T>
Overrides:
addAll in class java.util.Vector<T>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends T> c)
Specified by:
addAll in interface java.util.List<T>
Overrides:
addAll in class java.util.Vector<T>