org.jacorb.collection.util
Class DynArray

java.lang.Object
  extended by org.jacorb.collection.util.DynArray

public class DynArray
extends Object


Field Summary
protected  int elementCount
           
protected  Object[] elementData
           
 
Constructor Summary
DynArray()
           
DynArray(int initialCapacity)
           
 
Method Summary
 void addElement(Object obj)
           
 int capacity()
           
 boolean contains(Object elem)
           
 void copyInto(Object[] anArray)
           
 Object elementAt(int index)
           
 Enumeration elements()
           
 void ensureCapacity(int minCapacity)
           
protected  void finalize()
           
 Object firstElement()
           
 int indexOf(Object elem)
           
 int indexOf(Object elem, int index)
           
 void insertElementAt(Object obj, int index)
           
 boolean isEmpty()
           
 Object lastElement()
           
 void removeAllElements()
           
 boolean removeElement(Object obj)
           
 void removeElementAt(int index)
           
 void setElementAt(Object obj, int index)
           
 void setSize(int newSize)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementData

protected Object[] elementData

elementCount

protected int elementCount
Constructor Detail

DynArray

public DynArray(int initialCapacity)

DynArray

public DynArray()
Method Detail

copyInto

public void copyInto(Object[] anArray)

ensureCapacity

public void ensureCapacity(int minCapacity)

setSize

public void setSize(int newSize)

capacity

public int capacity()

size

public int size()

isEmpty

public boolean isEmpty()

elements

public Enumeration elements()

contains

public boolean contains(Object elem)

indexOf

public int indexOf(Object elem)

indexOf

public int indexOf(Object elem,
                   int index)

elementAt

public Object elementAt(int index)

setElementAt

public void setElementAt(Object obj,
                         int index)

removeElementAt

public void removeElementAt(int index)

insertElementAt

public void insertElementAt(Object obj,
                            int index)

addElement

public void addElement(Object obj)

removeElement

public boolean removeElement(Object obj)

removeAllElements

public void removeAllElements()

firstElement

public Object firstElement()

lastElement

public Object lastElement()

finalize

protected void finalize()
Overrides:
finalize in class Object


Copyright © 2015 JacORB. All rights reserved.