com.planet_ink.coffee_mud.core.collections
Class CMSTreeVector<T extends CMObject>

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.collections.CMSTreeVector<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

public class CMSTreeVector<T extends CMObject>
extends java.lang.Object
implements java.io.Serializable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

See Also:
Serialized Form

Constructor Summary
CMSTreeVector()
           
CMSTreeVector(java.util.Enumeration<T> E)
           
CMSTreeVector(int size)
           
CMSTreeVector(java.util.Iterator<T> E)
           
CMSTreeVector(java.util.List<T> E)
           
CMSTreeVector(java.util.Set<T> E)
           
CMSTreeVector(T[] E)
           
 
Method Summary
 void add(int index, T element)
           
 boolean add(T e)
           
 boolean addAll(java.util.Collection<? extends T> c)
           
 void addAll(java.util.Enumeration<T> E)
           
 boolean addAll(int index, java.util.Collection<? extends T> c)
           
 void addAll(java.util.Iterator<T> E)
           
 void addAll(T[] E)
           
 void addElement(T obj)
           
 int capacity()
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
 void copyInto(java.lang.Object[] anArray)
           
 CMSTreeVector<T> copyOf()
           
 T elementAt(int index)
           
 java.util.Enumeration<T> elements()
           
 void ensureCapacity(int minCapacity)
           
 boolean equals(java.lang.Object o)
           
 T find(java.lang.String key)
           
 T firstElement()
           
 T get(int index)
           
 int hashCode()
           
 int indexOf(java.lang.Object o)
           
 int indexOf(java.lang.Object o, int index)
           
 void insertElementAt(T obj, int index)
           
 boolean isEmpty()
           
 java.util.Iterator<T> iterator()
           
 T lastElement()
           
 int lastIndexOf(java.lang.Object o)
           
 int lastIndexOf(java.lang.Object o, int index)
           
 java.util.ListIterator<T> listIterator()
           
 java.util.ListIterator<T> listIterator(int index)
           
 T remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 void removeAll(java.util.Enumeration<T> E)
           
 void removeAll(java.util.Iterator<T> E)
           
 void removeAll(java.util.List<T> E)
           
 void removeAllElements()
           
 boolean removeElement(java.lang.Object obj)
           
 void removeElementAt(int index)
           
 boolean retainAll(java.util.Collection<?> c)
           
 T set(int index, T element)
           
 void setElementAt(T obj, int index)
           
 void setSize(int newSize)
           
 int size()
           
 java.util.List<T> subList(int fromIndex, int toIndex)
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 java.lang.String toString()
           
 java.util.Vector<T> toVector()
           
 void trimToSize()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMSTreeVector

public CMSTreeVector()

CMSTreeVector

public CMSTreeVector(int size)

CMSTreeVector

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

CMSTreeVector

public CMSTreeVector(T[] E)

CMSTreeVector

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

CMSTreeVector

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

CMSTreeVector

public CMSTreeVector(java.util.Set<T> E)
Method Detail

addAll

public void addAll(java.util.Enumeration<T> E)

addAll

public void addAll(T[] E)

addAll

public void addAll(java.util.Iterator<T> E)

removeAll

public void removeAll(java.util.Enumeration<T> E)

removeAll

public void removeAll(java.util.Iterator<T> E)

removeAll

public void removeAll(java.util.List<T> E)

capacity

public int capacity()

toVector

public java.util.Vector<T> toVector()

copyOf

public CMSTreeVector<T> copyOf()

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<T extends CMObject>
Specified by:
contains in interface java.util.List<T extends CMObject>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<T extends CMObject>
Specified by:
containsAll in interface java.util.List<T extends CMObject>

copyInto

public void copyInto(java.lang.Object[] anArray)

elementAt

public T elementAt(int index)

elements

public java.util.Enumeration<T> elements()

ensureCapacity

public void ensureCapacity(int minCapacity)

equals

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

firstElement

public T firstElement()

get

public T get(int index)
Specified by:
get in interface java.util.List<T extends CMObject>

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<T extends CMObject>
Specified by:
hashCode in interface java.util.List<T extends CMObject>
Overrides:
hashCode in class java.lang.Object

indexOf

public int indexOf(java.lang.Object o,
                   int index)

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List<T extends CMObject>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<T extends CMObject>
Specified by:
isEmpty in interface java.util.List<T extends CMObject>

lastElement

public T lastElement()

lastIndexOf

public int lastIndexOf(java.lang.Object o,
                       int index)

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List<T extends CMObject>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<T extends CMObject>
Specified by:
retainAll in interface java.util.List<T extends CMObject>

set

public T set(int index,
             T element)
Specified by:
set in interface java.util.List<T extends CMObject>

setElementAt

public void setElementAt(T obj,
                         int index)

setSize

public void setSize(int newSize)

size

public int size()
Specified by:
size in interface java.util.Collection<T extends CMObject>
Specified by:
size in interface java.util.List<T extends CMObject>

subList

public java.util.List<T> subList(int fromIndex,
                                 int toIndex)
Specified by:
subList in interface java.util.List<T extends CMObject>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<T extends CMObject>
Specified by:
toArray in interface java.util.List<T extends CMObject>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface java.util.Collection<T extends CMObject>
Specified by:
toArray in interface java.util.List<T extends CMObject>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

trimToSize

public void trimToSize()

add

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

add

public boolean add(T e)
Specified by:
add in interface java.util.Collection<T extends CMObject>
Specified by:
add in interface java.util.List<T extends CMObject>

addAll

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

addAll

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

addElement

public void addElement(T obj)

clear

public void clear()
Specified by:
clear in interface java.util.Collection<T extends CMObject>
Specified by:
clear in interface java.util.List<T extends CMObject>

insertElementAt

public void insertElementAt(T obj,
                            int index)

remove

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

remove

public T remove(int index)
Specified by:
remove in interface java.util.List<T extends CMObject>

removeAll

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

removeAllElements

public void removeAllElements()

find

public T find(java.lang.String key)

removeElement

public boolean removeElement(java.lang.Object obj)

removeElementAt

public void removeElementAt(int index)

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T extends CMObject>
Specified by:
iterator in interface java.util.Collection<T extends CMObject>
Specified by:
iterator in interface java.util.List<T extends CMObject>

listIterator

public java.util.ListIterator<T> listIterator()
Specified by:
listIterator in interface java.util.List<T extends CMObject>

listIterator

public java.util.ListIterator<T> listIterator(int index)
Specified by:
listIterator in interface java.util.List<T extends CMObject>