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.

@FunctionalInterface public interface Removable
The role of an object that can be removed (e.g. deleted).
Author:
Fabrizio Giudici
Status: stable API
Stereotype:
Role
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Class<Removable>
     
    static final Removable
    A default Removable which does nothing (useful for implementing the NullObject pattern).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes this object from some implicit, or context-provided container (e.g. a persistence facility, etc...).
  • Field Details

    • _Removable_

      static final Class<Removable> _Removable_
    • DEFAULT

      static final Removable DEFAULT
      A default Removable which does nothing (useful for implementing the NullObject pattern).
  • Method Details

    • remove

      void remove() throws Exception
      Removes this object from some implicit, or context-provided container (e.g. a persistence facility, etc...).
      Throws:
      Exception - if the operation fails