New (FloatNamedArraylist constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Create new FloatNamedArraylist instance<section end=dpl_desc/></b></span> [[Category:FloatNamedArraylist met...")
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Create new FloatNamedArraylist instance<section end=dpl_desc/></b></span>
{{Template:FloatNamedArraylist:New subtitle}}
[[Category:FloatNamedArraylist methods|New constructor]]
 
<!--DPL?? Category:FloatNamedArraylist methods|New constructor: Create new FloatNamedArraylist instance-->
This method returns a new instance of a <var>FloatNamedArraylist</var> object.
<p>
New is a member of the [[FloatNamedArraylist class]].
</p>


This method returns a new instance of a FloatNamedArraylist.
==Syntax==
==Syntax==
  %fnamrayl = New
{{Template:FloatNamedArraylist:New syntax}}
===Syntax Terms===
===Syntax Terms===
<dl>
<table class="syntaxTable">
<dt><i>%fnamrayl</i>
<tr><th>%fltNal</th>
<dd>A FloatNamedArraylist object that is set to a new FloatNamedArraylist
<td>A <var>FloatNamedArraylist</var> object variable that is set to a new <var>FloatNamedArraylist</var> object reference.</td></tr>
object reference.
<tr><th nowrap="true"><var>[%(FloatNamedArraylist Of </var>itemType<var>):]</var></th>
 
<td>The optional class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See "Usage notes," below, for more information about invoking a collection <var>Constructor</var>.</td></tr>
</dl>
</table>
==Usage Notes==
==Usage Notes==
<ul>
<ul>
<li>New is a constructor and therefore can be called with no
<li>As described in [[Object variables#Using New or other Constructors|"Using New or other Constructors"]], <var>New</var> can be invoked with no object, with an explicit class specification, or with an object variable, even if that object is <var>Null</var>:
object, with an explicit class name, or with an object variable,
<p class="code">%fltNal = new
even if that object is null:
 
<pre style="xmp">
%fltNal = %(floatNamedArraylist of longstring):new
    %fnamrayl = new
 
    %fnamrayl = %(floatNamedArraylist):new
%fltNal = %fltNal:new
    %fnamrayl = %fnamrayl:new
</p>
</pre>
'''Note:'''
:note
As shown above, when explicitly indicating the
When using the second of these syntax options of New, which explicitly indicates the
class, both the collection and the item datatype must be
class, both the collection and item datatypes must be
specified just as they are on the collection variable's declaration:
specified just as they are on the collection variable's declaration:
<pre style="xmp">
<p class="code">%fltrayl is floatNamedArraylist of longstring
    %fnamrayl is collection FloatNamedArraylist of longstring
%fltrayl = %(floatNamedArraylist of longstring):new
    %fnamrayl = %(FloatNamedArraylist of longstring):new
</p>
</pre>
</ul>
</ul>

Latest revision as of 19:29, 6 August 2012

Create a new FloatNamedArraylist object (FloatNamedArraylist class)


This method returns a new instance of a FloatNamedArraylist object.

Syntax

%fltNal = [%(FloatNamedArraylist Of itemType):]New

Syntax Terms

%fltNal A FloatNamedArraylist object variable that is set to a new FloatNamedArraylist object reference.
[%(FloatNamedArraylist Of itemType):] The optional class name in parentheses denotes a Constructor. See "Usage notes," below, for more information about invoking a collection Constructor.

Usage Notes

  • As described in "Using New or other Constructors", New can be invoked with no object, with an explicit class specification, or with an object variable, even if that object is Null:

    %fltNal = new %fltNal = %(floatNamedArraylist of longstring):new %fltNal = %fltNal:new

    Note: As shown above, when explicitly indicating the class, both the collection and the item datatype must be specified just as they are on the collection variable's declaration:

    %fltrayl is floatNamedArraylist of longstring %fltrayl = %(floatNamedArraylist of longstring):new