Class SimpleListener<T>


  • public class SimpleListener<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addListener​(java.util.function.Consumer<T> listener)  
      boolean removeListener​(java.util.function.Consumer<T> listener)  
      void sendUpdate​(T data)  
      • Methods inherited from class java.lang.Object

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

      • SimpleListener

        public SimpleListener()
    • Method Detail

      • sendUpdate

        public void sendUpdate​(T data)
      • addListener

        public void addListener​(java.util.function.Consumer<T> listener)
      • removeListener

        public boolean removeListener​(java.util.function.Consumer<T> listener)