Proposed Addition: A Lazy interface for handling lazy values, along with implementations for supplied and static values
Proposed Location: New package, com.harleyoconnor.javautilities.lazy
Key Features
Lazy interface which extends Supplier, extra method to unload the value.
- Both a static and supplied implementation. Static is effectively just a wrapper around an object for when a value doesn't need to be lazy, but a
Lazy is required, where supplied uses a wrapped supplier to load the value when get() is first called.
MutableLazy and implementation for a mutable, supplied lazy value.
Proposed Addition: A
Lazyinterface for handling lazy values, along with implementations for supplied and static valuesProposed Location: New package,
com.harleyoconnor.javautilities.lazyKey Features
Lazyinterface which extendsSupplier, extra method to unload the value.Lazyis required, where supplied uses a wrapped supplier to load the value whenget()is first called.MutableLazyand implementation for a mutable, supplied lazy value.