Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Trusted Contributor
Posts: 105
Registered: ‎02-02-2011
My Device: Bold 9900
My Carrier: Airtel
Accepted Solution

how create a copy of an object

In my application i want to make some modification on a custom object , also i need the old object for rollback, So I like to create a copy of the object, please help me to create a copy of the object , 

Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how create a copy of an object

there is no API for it, you have to create a new object and copy all its attributes one for one. take care to create new instances if any attributes are objects.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter