Interface Instance.Destructor<I>
- Type Parameters:
I
- the contextual instance type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface whose implementations can destroy contextual instances.
This is commonly implemented in terms of a method reference to the Factory.destroy(Object, Destruction)
method.
- Author:
- Laird Nelson
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(I i, Destruction creation) Destroys the supplied contextual instance.
-
Method Details
-
destroy
Destroys the supplied contextual instance.- Parameters:
i
- the contextual instance to destroy; may benull
creation
- theDestruction
view of theCreation
implementation that caused the contextual instance to be created; may benull
-