Class AbstractDatasetChangedEvent

    • Field Detail

      • dataSet

        protected final DataSet dataSet
        The dataset from which the event came from.
    • Constructor Detail

      • AbstractDatasetChangedEvent

        protected AbstractDatasetChangedEvent​(DataSet dataSet)
        Constructs a new AbstractDatasetChangedEvent.
        Parameters:
        dataSet - the dataset from which the event came from
    • Method Detail

      • fire

        public abstract void fire​(DataSetListener listener)
        Calls the appropriate method of the listener for this event.
        Parameters:
        listener - dataset listener to notify about this event
      • getPrimitives

        public abstract java.util.Collection<? extends OsmPrimitivegetPrimitives()
        Returns list of primitives modified by this event.
        WARNING This value might be incorrect in case of DataChangedEvent. It returns all primitives in the dataset when this method is called (live list), not list of primitives when the event was created
        Returns:
        List of modified primitives
      • getDataset

        public DataSet getDataset()
        Returns the dataset from which the event came from.
        Returns:
        the dataset from which the event came from
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object