com.planet_ink.coffee_mud.core.collections
Class DVector

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.collections.DVector
All Implemented Interfaces:
NList<java.lang.Object>, java.io.Serializable, java.lang.Cloneable

public class DVector
extends java.lang.Object
implements java.lang.Cloneable, NList<java.lang.Object>, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  int dimensions
           
static long serialVersionUID
           
 
Constructor Summary
DVector(int dim)
           
DVector(int dim, int startingSize)
           
 
Method Summary
 void add(int here, java.lang.Object... Os)
           
 void add(java.lang.Object... Os)
           
 void addElement(java.lang.Object... Os)
           
 void addSharedElements(java.lang.Object[] O)
           
 void clear()
           
 boolean contains(java.lang.Object O)
           
 boolean containsIgnoreCase(java.lang.String S)
           
 DVector copyOf()
           
 java.lang.Object elementAt(int i, int dim)
           
 java.lang.Object[] elementsAt(int x)
           
 java.lang.Object get(int i, int dim)
           
 java.util.List<java.lang.Object> getDimensionList(int dim)
           
 java.util.List<java.lang.Object> getRowList(int row)
           
 int indexOf(java.lang.Object O)
           
 void insertElementAt(int here, java.lang.Object... Os)
           
 void remove(int i)
           
 void removeElement(java.lang.Object O)
           
 void removeElementAt(int i)
           
 java.lang.Object[] removeElementsAt(int x)
           
 void set(int index, int dim, java.lang.Object O)
           
 void setElementAt(int index, int dim, java.lang.Object O)
           
 int size()
           
 void sortBy(int dim)
           
static DVector toNVector(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> h)
           
 void trimToSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

dimensions

protected int dimensions
Constructor Detail

DVector

public DVector(int dim)

DVector

public DVector(int dim,
               int startingSize)
Method Detail

clear

public void clear()
Specified by:
clear in interface NList<java.lang.Object>

trimToSize

public void trimToSize()
Specified by:
trimToSize in interface NList<java.lang.Object>

indexOf

public int indexOf(java.lang.Object O)
Specified by:
indexOf in interface NList<java.lang.Object>

elementsAt

public java.lang.Object[] elementsAt(int x)
Specified by:
elementsAt in interface NList<java.lang.Object>

removeElementsAt

public java.lang.Object[] removeElementsAt(int x)
Specified by:
removeElementsAt in interface NList<java.lang.Object>

copyOf

public DVector copyOf()
Specified by:
copyOf in interface NList<java.lang.Object>

sortBy

public void sortBy(int dim)
Specified by:
sortBy in interface NList<java.lang.Object>

toNVector

public static DVector toNVector(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> h)

addSharedElements

public void addSharedElements(java.lang.Object[] O)
Specified by:
addSharedElements in interface NList<java.lang.Object>

addElement

public void addElement(java.lang.Object... Os)
Specified by:
addElement in interface NList<java.lang.Object>

add

public void add(java.lang.Object... Os)
Specified by:
add in interface NList<java.lang.Object>

contains

public boolean contains(java.lang.Object O)
Specified by:
contains in interface NList<java.lang.Object>

containsIgnoreCase

public boolean containsIgnoreCase(java.lang.String S)
Specified by:
containsIgnoreCase in interface NList<java.lang.Object>

size

public int size()
Specified by:
size in interface NList<java.lang.Object>

removeElementAt

public void removeElementAt(int i)
Specified by:
removeElementAt in interface NList<java.lang.Object>

remove

public void remove(int i)
Specified by:
remove in interface NList<java.lang.Object>

removeElement

public void removeElement(java.lang.Object O)
Specified by:
removeElement in interface NList<java.lang.Object>

getDimensionList

public java.util.List<java.lang.Object> getDimensionList(int dim)
Specified by:
getDimensionList in interface NList<java.lang.Object>

getRowList

public java.util.List<java.lang.Object> getRowList(int row)
Specified by:
getRowList in interface NList<java.lang.Object>

elementAt

public java.lang.Object elementAt(int i,
                                  int dim)
Specified by:
elementAt in interface NList<java.lang.Object>

get

public java.lang.Object get(int i,
                            int dim)
Specified by:
get in interface NList<java.lang.Object>

setElementAt

public void setElementAt(int index,
                         int dim,
                         java.lang.Object O)
Specified by:
setElementAt in interface NList<java.lang.Object>

set

public void set(int index,
                int dim,
                java.lang.Object O)
Specified by:
set in interface NList<java.lang.Object>

insertElementAt

public void insertElementAt(int here,
                            java.lang.Object... Os)
Specified by:
insertElementAt in interface NList<java.lang.Object>

add

public void add(int here,
                java.lang.Object... Os)
Specified by:
add in interface NList<java.lang.Object>