Class UpdatePrinter<T>

java.lang.Object
org.tweetyproject.preferences.events.UpdatePrinter<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
EventListener, UpdateListener<T>

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

    • UpdatePrinter

      public UpdatePrinter()
  • Method Details

    • 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