Interface Listenable<T>

    • Method Detail

      • addListener

        void addListener​(T listener)
        Add the given listener. The listener will be executed in the containing instance's thread.
        Parameters:
        listener - listener to add
      • addListener

        void addListener​(T listener,
                         Executor executor)
        Add the given listener. The listener will be executed using the given executor
        Parameters:
        listener - listener to add
        executor - executor to run listener in
      • removeListener

        void removeListener​(T listener)
        Remove the given listener
        Parameters:
        listener - listener to remove