DeepCopy (Arraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Deep Copy the Arraylist<section end=dpl_desc/></b></span>
{{Template:Arraylist:DeepCopy subtitle}}
[[Category:Arraylist methods|DeepCopy function]]
[[Category:Arraylist methods|DeepCopy function]]
<!--DPL?? Category:Arraylist methods|DeepCopy function: Deep Copy the Arraylist-->
<!--DPL?? Category:Arraylist methods|DeepCopy function: Deep Copy the Arraylist-->
Line 7: Line 7:


This function
This function
makes a &ldquo;deep copy&rdquo; of the Arraylist method object, ''%arrayl''.
makes a "deep copy" of the Arraylist method object, ''%arrayl''.
If ''%arrayl'' contains objects, they '''are''' copied.
If ''%arrayl'' contains objects, they '''are''' copied.
If ''%arrayl'' is Null, a Null is returned.
If ''%arrayl'' is Null, a Null is returned.


For more information about copyability, see [[Copying objects]].
For more information about copyability, see [[Copying objects]].
===Syntax===
==Syntax==
  %dcop = %arrayl:DeepCopy
{{Template:Arraylist:DeepCopy syntax}}
====Syntax Terms====
===Syntax terms===
<dl>
<dl>
<dt><i>%dcop</i>
<dt><i>%dcop</i>

Revision as of 23:27, 19 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, %arrayl. If %arrayl contains objects, they are copied. If %arrayl 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 %arrayl.
%arrayl
An Arraylist object.