public abstract class <T>
The base class for generic, template data Containers.
protected T[]
Elements
T Elements.
public int
Num
The number of Elements in this Container.
Summary:
Initialisation of a new Container with an Initial Size of T-defaulted Elements.
Params:
Elements:
Initial Elements.
Summary:
Initialisation of a new Container with an Initial Size of T-defaulted Elements.
Params:
InitialSize:
Initial capacity of Elements.
Summary:
Initialisation of a new Container with 32 T-defaulted Elements.
public T[]
Summary:
Reduces this Container's memory usage to smallest possible required to store its Elements.
Returns:
The shrunk array.
public bool
Summary:
Checks if this Container is Empty.
Returns:
True if Num <= 0. Otherwise, false.
public void
Summary:
Resizes this Container to a NewSize.
Params:
NewSize:
The new capacity of this Container.
public void
Summary:
Sets this MContainer of T Elements.
Params:
Elements:
The Elements to set.
public abstract T[]
Summary:
Converts this Container to a T[].
Returns:
T[].