CloneUtils.Clone(Object) Method

Definition

Clones an object that implements ICloneable by invoking its public clone method.

[Android.Runtime.Register("clone", "(Ljava/lang/Object;)Ljava/lang/Object;", "")]
public static Java.Lang.Object? Clone(Java.Lang.Object? obj);
[<Android.Runtime.Register("clone", "(Ljava/lang/Object;)Ljava/lang/Object;", "")>]
static member Clone : Java.Lang.Object -> Java.Lang.Object

Parameters

obj
Object

The object to clone, or null.

Returns

A clone of obj, or null if obj is null.

Attributes

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to