summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/funcdata
AgeCommit message (Collapse)Author
2020-11-21Change IMap to use Optional, not exceptionsBen Culkin
IMap now returns optionals, instead of throwing an exception
2020-11-17Reorder the methods in IMap againBen Culkin
2020-11-17Add static function for constructing IMap more easilyBen Culkin
Added a static function 'of' to IMap to allow you to more easily create a map from a list of key-value pairs. However, misuse of this method can result in getting ClassCastExceptions at some later point, because it has to use Object var-args + an unsafe generic cast. So, be careful, I suppose; and please make sure your argument types are correct.
2020-11-17Remove some unnecessary overridesBen Culkin
IMap has some default methods that its various implementations were overriding when they didn't need to
2020-11-17Implement IFreezable for IMapBen Culkin
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
2020-11-09Formatting cleanupBen Culkin
2020-04-13Cleanup passBen Culkin
Pass to do some cleanups
2019-07-02Rename package rootbculkin2442
The package root is now bjc, not io.github.bculkin2442.