Interface Advertiser

  • All Implemented Interfaces:

    
    public interface Advertiser<T extends Object>
    
                        

    Interface that includes listener management

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit addListener(T listener) Adds listener to receive callbacks
      abstract Unit removeListener(T listener) Removes listener to stop receiving callbacks
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • addListener

         abstract Unit addListener(T listener)

        Adds listener to receive callbacks

        Parameters:
        listener - A listener of type T
      • removeListener

         abstract Unit removeListener(T listener)

        Removes listener to stop receiving callbacks

        Parameters:
        listener - A listener of type T