Package org.alban098.common
Interface Cleanable
- All Known Implementing Classes:
Transform
public interface Cleanable
An interface making an Object cleanable, meaning it needs a custom behavior before destruction
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()The actual behavior to execute before the Object's destructor is calleddefault voidRegister the element to be cleared on program exit, must be called in the constructor
-
Method Details
-
cleanUp
void cleanUp()The actual behavior to execute before the Object's destructor is called -
initialize
default void initialize()Register the element to be cleared on program exit, must be called in the constructor
-