Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isMemoized() method to MemoizingSupplier #7469

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Oct 19, 2024

  1. Add isMemoized() method to MemoizingSupplier

    -allowing check whether the value has been memoized without triggering the memoization process.
    -updated toString() to reflect state
    
    Resolves issue#7292
    Xccx123 committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    92bf80f View commit details
    Browse the repository at this point in the history
  2. Add reset() and getIfMemoized() method to MemoizingSupplier

    - reset() method allowing resetting the cached value, enabling the supplier to recompute the value.
    - getIfMemoized() method returns the cached value if has been initialized, otherwise returns null.
    
    Resolves issue#7292
    Xccx123 committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    16ebce0 View commit details
    Browse the repository at this point in the history
  3. Add refresh() method to MemoizingSupplier

    - refresh() which forces the recomputation of the cached value even if it has already been memoized. This will ensure the value is up to date.
    
    Resolves issue#7292
    Xccx123 committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    29ac5c2 View commit details
    Browse the repository at this point in the history