New (NamedArraylist constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Create new NamedArraylist instance<section end=dpl_desc/></b></span>
#REDIRECT [[New (GenericNamedArraylist constructor)]]
[[Category:NamedArraylist methods|New constructor]]
<!--DPL?? Category:NamedArraylist methods|New constructor: Create new NamedArraylist instance-->
<p>
New is a member of the [[NamedArraylist class]].
</p>
 
This method returns a new instance of a NamedArraylist.
==Syntax==
  %namrayl = New
===Syntax Terms===
<dl>
<dt><i>%namrayl</i>
<dd>A NamedArraylist object that is set to a new NamedArraylist object reference.
 
</dl>
==Usage Notes==
<ul>
<li>New is a constructor and as such can be called with no
object, with an explicit class name, or with an object variable,
even if that object is null:
<pre style="xmp">
    %namrayl = new
    %namrayl = %(namedArraylist):new
    %namrayl = %namrayl:new
</pre>
:note
When using the second of these syntax options of New, which explicitly indicates the
class, both the collection and item datatypes must be
specified just as they are on the collection variable's declaration:
<pre style="xmp">
    %namrayl  is collection NamedArraylist of longstring
    %namrayl  = %(NamedArraylist of longstring):new
</pre>
</ul>

Latest revision as of 20:01, 1 November 2012