Interface Lazy.ClearingEvaluator

All Known Implementing Classes:
Lazy.Checker.Default
Enclosing interface:
Lazy<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public static interface Lazy.ClearingEvaluator
Simple functional evaluator which decides if lazy references should be cleared.
See Also:
Lazy.clear(ClearingEvaluator)
  • Method Summary

    Modifier and Type Method Description
    boolean needsClearing​(Lazy<?> lazyReference)
    Returns if the given lazyReference should be cleared.
  • Method Details

    • needsClearing

      boolean needsClearing​(Lazy<?> lazyReference)
      Returns if the given lazyReference should be cleared.
      Parameters:
      lazyReference - the lazy reference to evaluate
      Returns:
      true if the lazy reference should be cleared, false otherwise