How can we change Immutable Objects?
If you're required to update an immutable
object, there really isn't a workaround. You first have to clone
that object, and then modify that cloned object in order for it to reflect your changes. Otherwise, there is no way that you can directly manipulate the immutable object.