Class UpdateEvent<T>

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

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

      • UpdateEvent

        public UpdateEvent​(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