DeepCopy (Arraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
{{Template:Arraylist:DeepCopy subtitle}}
{{Template:Arraylist:DeepCopy subtitle}}
[[Category:Arraylist methods|DeepCopy function]]
[[Category:Arraylist methods|DeepCopy function]]
<!--DPL?? Category:Arraylist methods|<var>DeepCopy</var> function: Deep Copy the Arraylist-->
<!--DPL?? Category:<var>Arraylist</var> methods|<var>DeepCopy</var> function: Deep Copy the <var>Arraylist</var>-->
<p>
<p>
<var>DeepCopy</var> is a member of the [[Arraylist class]].
<var>DeepCopy</var> is a member of the [[Arraylist class]].
Line 7: Line 7:


This function
This function
makes a "deep copy" of the Arraylist method object, ''%arrayl''.
makes a "deep copy" of the <var>Arraylist</var> method object, ''<var class="term">al</var>''.
If ''%arrayl'' contains objects, they '''are''' copied.
If ''<var class="term">al</var>'' contains objects, they '''are''' copied.
If ''%arrayl'' is Null, a Null is returned.
If ''<var class="term">al</var>'' is Null, a Null is returned.


For more information about copyability, see [[Copying objects]].
For more information about copyability, see [[Copying objects]].
Line 17: Line 17:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th><i>%dcop</i></th>
<tr><th><i>%dcop</i></th>
<td>An Arraylist to contain the deep copy of ''%arrayl''. </td></tr>
<td>An <var>Arraylist</var> to contain the deep copy of ''<var class="term">al</var>''. </td></tr>
<tr><th><i>%arrayl</i></th>
<tr><th><i><var class="term">al</var></i></th>
<td>An Arraylist object.</td></tr>
<td>An <var>Arraylist</var> object.</td></tr>
</table>
</table>

Revision as of 02:29, 20 January 2011

Deep Copy the Arraylist (Arraylist class)

DeepCopy is a member of the Arraylist class.

This function makes a "deep copy" of the Arraylist method object, al. If al contains objects, they are copied. If al is Null, a Null is returned.

For more information about copyability, see Copying objects.

Syntax

%copyList = al:DeepCopy

Syntax terms

%dcop An Arraylist to contain the deep copy of al.
al An Arraylist object.