GenericNamedArraylist class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
<tr><th>FloatNamedArraylist</th><td>Numbers. <var>FloatNamedArraylists</var> can act as spares 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).</td></tr>
<tr><th>FloatNamedArraylist</th><td>Numbers. <var>FloatNamedArraylists</var> can act as spares 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).</td></tr>
<tr><th>NamedArraylist</th><td>Unicode strings</td></tr>
<tr><th>NamedArraylist</th><td>Unicode strings</td></tr>
</table>
==See also==
<table>
<tr><th>[[List of NamedArraylist methods]]</th>
<td>For a list of all methods in the <var>NamedArraylist</var> class, with a brief description of each.</td></tr>
<tr><th>[[List of FloatNamedArraylist methods]]</th>
<td>For a list of all methods in the <var>FloatNamedArraylist</var> class, with a brief description of each.</td></tr>
<tr><th>[[List of UnicodeNamedArraylist methods]]</th>
<td>For a list of all methods in the <var>UnicodeNamedArraylist</var> class, with a brief description of each.</td></tr>
<tr><th>[[Collections]]</th>
<td>For background information about collections and <var>Arraylist</var>s and about
declaring <var>Arraylist</var> object variables.</td></tr>
<tr><th>[[Collections#Coding considerations for collections|Coding
considerations for collections]]</th>
<td>For tips on using collections.</td></tr>
</table>
</table>
[[Category:System classes]]
[[Category:System classes]]

Revision as of 20:31, 28 January 2011

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 spares 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).
NamedArraylistUnicode 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.