Package it.tidalwave.role
Interface Removable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The role of an object that can be removed (e.g. deleted).
- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Removable
A defaultRemovable
which does nothing (useful for implementing the NullObject pattern). -
Method Summary
Modifier and TypeMethodDescriptionvoid
remove()
Removes this object from some implicit, or context-provided container (e.g. a persistence facility, etc...).
-
Field Details
-
_Removable_
-
DEFAULT
A defaultRemovable
which does nothing (useful for implementing the NullObject pattern).
-
-
Method Details
-
remove
Removes this object from some implicit, or context-provided container (e.g. a persistence facility, etc...).- Throws:
Exception
- if the operation fails
-