Welcome!

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

Reply
Trusted Contributor
jijoac
Posts: 105
Registered: ‎02-02-2011
My Device: Bold 9900
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 , 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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