Skip to content

Lazy Values #2

@Harleyoc1

Description

@Harleyoc1

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions