Interface Disposable

All Known Subinterfaces:
Disposable.Parent
All Known Implementing Classes:
Alarm, Animator

public interface Disposable
This class marks classes, which require some work done for cleaning up. As a general policy you shouldn't call the dispose() method directly, but register your object to be chained with a parent disposable via Disposer.register(Disposable, Disposable). If you're 100% sure that you should control disposion of your object manually, do not call the dispose() method either. Use Disposer.dispose(Disposable) instead, since there might be any object registered in chain.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
  • Method Details

    • dispose

      void dispose()