Copy (Arraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Copy the Arraylist<section end=dpl_desc/></b></span>
{{Template:Arraylist:Copy subtitle}}
[[Category:Arraylist methods|Copy function]]
<var>Copy</var> makes a "shallow" copy of the <var>Arraylist</var> method object <var class="term">al</var>.  If <var class="term">al</var> contains objects, they are <b><i>not</i></b> copied.  If <var class="term">al</var> is <var>Null</var>, a <var>Null</var> is returned.
<!--DPL?? Category:Arraylist methods|Copy function: Copy the Arraylist-->
<p>
Copy is a member of the [[Arraylist class]].
</p>


This function
==Syntax==
makes a "shallow" copy of the Arraylist method object ''%arrayl''.
{{Template:Arraylist:Copy syntax}}
If ''%arrayl'' contains objects, they are '''not''' copied.
If ''%arrayl'' is Null, a Null is returned.


For more information about copyability, see [[Copying objects]].
===Syntax terms===
===Syntax===
<table class="syntaxTable">
  %cop = %arrayl:Copy
<tr><th>%copyList</th>
====Syntax Terms====
<td>An <var>Arraylist</var> to contain the copy of the method object <var>Arraylist</var>, <var class="term">al</var>. </td></tr>
<dl>
<dt><i>%cop</i>
<dd>An Arraylist to contain the copy of the method Arraylist ''%arrayl''.
<dt><i>%arrayl</i>
<dd>An Arraylist object.


</dl>
<tr><th>al</th>
<td>An <var>Arraylist</var> object, which may be <var>Null</var>.</td></tr>
</table>
 
==See also==
<ul><li>Contrast with <var>[[DeepCopy_(Arraylist_function)|DeepCopy]]</var> which <b><i>does</i></b> copy any nested objects.
<li>For more information about copyability, see [[Copying objects|"Copying objects"]].
</ul>
{{Template:Arraylist:Copy footer}}

Latest revision as of 15:30, 1 November 2012

Copy the Arraylist (Arraylist class)

Copy makes a "shallow" copy of the Arraylist method object al. If al contains objects, they are not copied. If al is Null, a Null is returned.

Syntax

%copyList = al:Copy

Syntax terms

%copyList An Arraylist to contain the copy of the method object Arraylist, al.
al An Arraylist object, which may be Null.

See also