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.
-
Array()
- The Constructor for an Array of objects.
-
Array(int)
- The Constructor for an Array with an inital size
-
Array(int, int)
- The Constructor for an Array with an inital size and an amount of grow
-
Append(Object)
- Append an element at the end of the array
-
ElementAt(int)
- Dereference the element at position index of the array
-
getSize()
-
-
InitIteration()
- Initialize regular iteration over the elements of the array
-
InitIterationReverse()
- Initialize reverse iteration over the elements of the array
-
NextIteration()
- Iteration over the elements of the array
-
toString()
-
Array
public Array()
- The Constructor for an Array of objects.
- Returns:
- an instance.
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.
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)
getSize
public int getSize()
ElementAt
public Object ElementAt(int index)
- Dereference the element at position index of the array
- Parameters:
- index - at which the element is located
Append
public void Append(Object obj)
- Append an element at the end of the array
- Parameters:
- Object - the object, to append
InitIteration
public void InitIteration()
- Initialize regular iteration over the elements of the array
InitIterationReverse
public void InitIterationReverse()
- Initialize reverse iteration over the elements of the array
NextIteration
public Object NextIteration()
- Iteration over the elements of the array
- Returns:
- Object (the next object of the iteration or null )
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index