Interface Destroyable.DestroyAutomaton

    • Method Detail

      • isDestroyable

        boolean isDestroyable​()
        Determines whether the component may get destroyed.
        Returns:
        True if Destroyable.destroy() is possible.
      • isDestroyed

        boolean isDestroyed​()
        Determines whether the component is destroyed. In case of being true, then invoking any of that Component instance's methods (except the Destroyable.destroy() method) must throw an IllegalStateException as by definition a once destroyed Component is in the state of being destroyed which is irreversible.
        Returns:
        True in case of being destroyed, else false.