GenericNamedArraylist class

From m204wiki
Jump to navigation Jump to search

The GenericNamedArraylist class is a system abstract base class of the NamedArraylist class, the FloatNamedArraylist class, and the UnicodeNamedArraylist class. All these classes act like arrays, where the items in the array can be referenced by a "name" rather than an item number (though all items can also be referenced by item number.

Unlike User Language abstract classes, one cannot define variables with the type of the abstract class so that it is not possible to define a variable as GenericNamedArraylist. This means that, except for documentation purposes, the GenericNamedArraylist class is essentially hidden from User Language programmers.

The extension classes of the GenericNamedArraylist class only vary in the names used to reference the items, where the names of array items are of the following types:

NamedArraylistEBCDIC or binary strings.
FloatNamedArraylistNumbers. FloatNamedArraylists can act as sparse arrays, that is numeric arrays where not every index has to have a value. However, they differ from sparse arrays in that they can also have negative or non-integer names (indexes).
UnicodeNamedArraylistUnicode strings.

See also

List of NamedArraylist methods For a list of all methods in the NamedArraylist class, with a brief description of each.
List of FloatNamedArraylist methods For a list of all methods in the FloatNamedArraylist class, with a brief description of each.
List of UnicodeNamedArraylist methods For a list of all methods in the UnicodeNamedArraylist class, with a brief description of each.
Collections For background information about collections and Arraylists and about declaring Arraylist object variables.
Coding considerations for collections For tips on using collections.