Class UpdateEvent<T>

  • Type Parameters:
    T - generic preference order type
    All Implemented Interfaces:
    java.io.Serializable

    public class UpdateEvent<T>
    extends java.util.EventObject
    The class for event objects used in dynamic preference aggregation
    Author:
    Bastian Wolf
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UpdateEvent​(java.lang.Object source, PreferenceOrder<T> result)
      constructor for an update containing the aggregation result
    • Method Summary

      Modifier and Type Method Description
      PreferenceOrder<T> getResult()
      returns the result for this update event
      boolean setResult​(PreferenceOrder<T> result)
      Sets the result in for this update event
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

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

      • UpdateEvent

        public UpdateEvent​(java.lang.Object source,
                           PreferenceOrder<T> result)
        constructor for an update containing the aggregation result
        Parameters:
        source - where the event occurred
        result - of the occurring event
    • Method Detail

      • setResult

        public boolean setResult​(PreferenceOrder<T> result)
        Sets the result in for this update event
        Parameters:
        result - of this update event
        Returns:
        true iff the operation was successful
      • getResult

        public PreferenceOrder<T> getResult()
        returns the result for this update event
        Returns:
        the result for this update event