Package one.microstream.reference
Interface Lazy.ClearingEvaluator
- All Known Implementing Classes:
Lazy.Checker.Default
- 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 givenlazyReference
should be cleared.
-
Method Details
-
needsClearing
Returns if the givenlazyReference
should be cleared.- Parameters:
lazyReference
- the lazy reference to evaluate- Returns:
true
if the lazy reference should be cleared,false
otherwise
-