Class ListenerContainer<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      ListenerContainer()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addListener​(T listener)
      Deprecated.
      Add the given listener.
      void addListener​(T listener, java.util.concurrent.Executor executor)
      Deprecated.
      Add the given listener.
      void clear()
      Deprecated.
      Remove all listeners
      void forEach​(com.google.common.base.Function<T,​java.lang.Void> function)
      Deprecated.
      Utility - apply the given function to each listener.
      void removeListener​(T listener)
      Deprecated.
      Remove the given listener
      int size()
      Deprecated.
      Return the number of listeners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListenerContainer

        public ListenerContainer()
        Deprecated.
    • Method Detail

      • addListener

        public void addListener​(T listener)
        Deprecated.
        Description copied from interface: Listenable
        Add the given listener. The listener will be executed in the containing instance's thread.
        Specified by:
        addListener in interface Listenable<T>
        Parameters:
        listener - listener to add
      • addListener

        public void addListener​(T listener,
                                java.util.concurrent.Executor executor)
        Deprecated.
        Description copied from interface: Listenable
        Add the given listener. The listener will be executed using the given executor
        Specified by:
        addListener in interface Listenable<T>
        Parameters:
        listener - listener to add
        executor - executor to run listener in
      • removeListener

        public void removeListener​(T listener)
        Deprecated.
        Description copied from interface: Listenable
        Remove the given listener
        Specified by:
        removeListener in interface Listenable<T>
        Parameters:
        listener - listener to remove
      • clear

        public void clear()
        Deprecated.
        Remove all listeners
      • size

        public int size()
        Deprecated.
        Return the number of listeners
        Returns:
        number
      • forEach

        public void forEach​(com.google.common.base.Function<T,​java.lang.Void> function)
        Deprecated.
        Utility - apply the given function to each listener. The function receives the listener as an argument.
        Parameters:
        function - function to call for each listener