Copy (Arraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 15: Line 15:
{{Template:Arraylist:Copy syntax}}
{{Template:Arraylist:Copy syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt><i>%cop</i>
<tr><th><i>%cop</i></th>
<dd>An Arraylist to contain the copy of the method Arraylist ''%arrayl''.
<td>An Arraylist to contain the copy of the method Arraylist ''%arrayl''. </td></tr>
<dt><i>%arrayl</i>
<tr><th><i>%arrayl</i></th>
<dd>An Arraylist object.
<td>An Arraylist object.</td></tr>
 
</table>
</dl>

Revision as of 23:26, 19 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 %arrayl. 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

%copyList = al:Copy

Syntax terms

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