Class mheg5.UTL.Array
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mheg5.UTL.Array

java.lang.Object
   |
   +----mheg5.UTL.Array

public class Array
extends Object
implements Iterator, Cloneable
A class for providing a dynamically growing array.

Constructor Index

 o Array()
The Constructor for an Array of objects.
 o Array(int)
The Constructor for an Array with an inital size
 o Array(int, int)
The Constructor for an Array with an inital size and an amount of grow

Method Index

 o Append(Object)
Append an element at the end of the array
 o ElementAt(int)
Dereference the element at position index of the array
 o getSize()
 o InitIteration()
Initialize regular iteration over the elements of the array
 o InitIterationReverse()
Initialize reverse iteration over the elements of the array
 o NextIteration()
Iteration over the elements of the array
 o toString()

Constructors

 o Array
  public Array()
The Constructor for an Array of objects.
Returns:
an instance.
 o Array
  public Array(int initialSize)
The Constructor for an Array with an inital size
Parameters:
initalSize - (the initial size of the array)
Returns:
an instance.
 o Array
  public Array(int initialSize,
               int extensionSize)
The Constructor for an Array with an inital size and an amount of grow
Parameters:
initialSize - (the initial size of the array)
extensionSize - (the extension size of the array)

Methods

 o getSize
  public int getSize()
 o ElementAt
  public Object ElementAt(int index)
Dereference the element at position index of the array
Parameters:
index - at which the element is located
 o Append
  public void Append(Object obj)
Append an element at the end of the array
Parameters:
Object - the object, to append
 o InitIteration
  public void InitIteration()
Initialize regular iteration over the elements of the array
 o InitIterationReverse
  public void InitIterationReverse()
Initialize reverse iteration over the elements of the array
 o NextIteration
  public Object NextIteration()
Iteration over the elements of the array
Returns:
Object (the next object of the iteration or null )
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index