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 java.lang.Class<Removable> _Removable_  
      static Removable DEFAULT
      A default Removable which does nothing (useful for implementing the NullObject pattern).
    • Field Detail

      • _Removable_

        static final java.lang.Class<Removable> _Removable_
      • DEFAULT

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

      • remove

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