10.5. Copying

Instances of a structure provide copying methods:

Trying to invoke any setter methods on an instance obtained through frozenCopy() raises a java.lang.IllegalStateException.

Important

The result of calling copy() on a frozen instance is a mutable copy, not a frozen copy.