DeepCopy (Arraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (match syntax diagram to template)
Line 2: Line 2:


This function
This function
makes a "deep copy" of the <var>Arraylist</var> method object, ''<var class="term">al</var>''.
makes a "deep copy" of the <var>Arraylist</var> method object, <var class="term">al</var>. If <var class="term">al</var> contains objects, they <b><i>are</i></b> copied. If <var class="term">al</var> is Null, a Null is returned.
If ''<var class="term">al</var>'' contains objects, they '''are''' copied.
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 11: Line 9:
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th><i>%dcop</i></th>
<tr><th><i>%copyList</i></th>
<td>An <var>Arraylist</var> to contain the deep copy of ''<var class="term">al</var>''. </td></tr>
<td>An <var>Arraylist</var> to contain the deep copy of <var class="term">al</var>. </td></tr>
<tr><th><i><var class="term">al</var></i></th>
<tr><th><i><var class="term">al</var></i></th>
<td>An <var>Arraylist</var> object.</td></tr>
<td>An <var>Arraylist</var> object.</td></tr>

Revision as of 10:12, 29 January 2011

Deep Copy the Arraylist (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

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

See also