public class DynArray extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
elementCount |
protected Object[] |
elementData |
Constructor and Description |
---|
DynArray() |
DynArray(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
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() |
protected Object[] elementData
protected int elementCount
public void copyInto(Object[] anArray)
public void ensureCapacity(int minCapacity)
public void setSize(int newSize)
public int capacity()
public int size()
public boolean isEmpty()
public Enumeration elements()
public boolean contains(Object elem)
public int indexOf(Object elem)
public int indexOf(Object elem, int index)
public Object elementAt(int index)
public void setElementAt(Object obj, int index)
public void removeElementAt(int index)
public void insertElementAt(Object obj, int index)
public void addElement(Object obj)
public boolean removeElement(Object obj)
public void removeAllElements()
public Object firstElement()
public Object lastElement()
Copyright © 2016 JacORB. All rights reserved.