Here’s a problem that occurs often in UI development; You have a model and you want to do changes that can be ‘cancelled’ or reverted back to it’s original. You don’t want to modify the model directly because those are normally the values that the server gives you and you wouldn’t want to be off-sync with the server if you’re doing polling or pushing data retrieval.
What’s the solution? Since it’s the actual components doing a change, you want them to keep state because the components know when to update or reset. How you implement this solution is up to you, but here’s a utility that might help; ObjectUtil.


