Copy (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:Copy subtitle}}
{{Template:Arraylist:Copy subtitle}}
[[Category:Arraylist methods|Copy function]]
[[Category:Arraylist methods|Copy function]]
<!--DPL?? Category:Arraylist methods|<var>Copy</var> function: <var>Copy</var> the Arraylist-->
<!--DPL?? Category:<var>Arraylist</var> methods|<var>Copy</var> function: <var>Copy</var> the <var>Arraylist</var>-->
<p>
<p>
<var>Copy</var> is a member of the [[Arraylist class]].
<var>Copy</var> is a member of the [[Arraylist class]].
Line 7: Line 7:


This function
This function
makes a "shallow" copy of the Arraylist method object ''%arrayl''.
makes a "shallow" copy of the <var>Arraylist</var> method object ''<var class="term">al</var>''.
If ''%arrayl'' contains objects, they are '''not''' copied.
If ''<var class="term">al</var>'' contains objects, they are '''not''' 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>%cop</i></th>
<tr><th><i>%cop</i></th>
<td>An Arraylist to contain the copy of the method Arraylist ''%arrayl''. </td></tr>
<td>An <var>Arraylist</var> to contain the copy of the method <var>Arraylist</var> ''<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

Copy the Arraylist (Arraylist class)

Copy is a member of the Arraylist class.

This function 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.

For more information about copyability, see Copying objects.

Syntax

%copyList = al:Copy

Syntax terms

%cop An Arraylist to contain the copy of the method Arraylist al.
al An Arraylist object.