summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/funcdata/ObjectFrozen.java
AgeCommit message (Collapse)Author
2020-11-16Add interface for freezing/thawing objectsBen Culkin
This adds a new interface IFreezable, which denotes that your object supports being 'frozen' (immutable) or 'thawed' (mutable). There is also optional support for 'deep-freezing' objects, which disables the ability to thaw them. It also introduces a new exception called ObjectFrozen, which implementations of IFreezable may or may not throw when you attempt to modify a frozen object