DeepCopy (Arraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
m (add note re exception to deep copyability)
 
Line 13: Line 13:
<td>An <var>Arraylist</var> object, which may be <var>Null</var>.</td></tr>
<td>An <var>Arraylist</var> object, which may be <var>Null</var>.</td></tr>
</table>
</table>
==Usage notes==
<ul>
<li>Although <var>Arraylist</var> objects in general are deep copyable, a particular <var>Arraylist</var> might contain references to non-deep-copyable objects, which disallows deep copy of that specific <var>Arraylist</var>. </li>
</ul>


==See also==
==See also==

Latest revision as of 22:04, 23 January 2017

Deep Copy the Arraylist (Arraylist class)

DeepCopy 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.

Syntax

%copyList = al:DeepCopy

Syntax terms

%copyList An Arraylist to contain the deep copy of the method object, al.
al An Arraylist object, which may be Null.

Usage notes

  • Although Arraylist objects in general are deep copyable, a particular Arraylist might contain references to non-deep-copyable objects, which disallows deep copy of that specific Arraylist.

See also

  • Contrast with Copy which does not copy any nested objects.
  • For more information about copyability, see "Copying objects".