Interface Freeable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void complainIfFreed()
      Throws an exception when the object is freed more than once.
      void free()
      Free this object, which means that the underlying ressources are released.
      boolean isFree()
      Returns true if the object has been freed, which usually means that the underlying ressources are not longer available.
    • Method Detail

      • free

        void free()
        Free this object, which means that the underlying ressources are released.
      • isFree

        boolean isFree()
        Returns true if the object has been freed, which usually means that the underlying ressources are not longer available.
        Returns:
        true if free
      • complainIfFreed

        void complainIfFreed()
                      throws FreedException
        Throws an exception when the object is freed more than once.
        Throws:
        FreedException - exception thrown