Class UpdatePrinter<T>

  • Type Parameters:
    T - the generic type
    All Implemented Interfaces:
    java.util.EventListener, UpdateListener<T>

    public class UpdatePrinter<T>
    extends java.lang.Object
    implements UpdateListener<T>
    This exemplary class implements a simple printer for update events writing its result into the console
    Author:
    Bastian Wolf
    • Constructor Summary

      Constructors 
      Constructor Description
      UpdatePrinter()  
    • Method Summary

      Modifier and Type Method Description
      void eventOccurred​(UpdateEvent<T> e)
      This method is called every time an update occurs
      • Methods inherited from class java.lang.Object

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

      • UpdatePrinter

        public UpdatePrinter()
    • Method Detail

      • eventOccurred

        public void eventOccurred​(UpdateEvent<T> e)
        This method is called every time an update occurs
        Specified by:
        eventOccurred in interface UpdateListener<T>
        Parameters:
        e - the update event observed by the listener