Class ReplacementEvent

    • Constructor Detail

      • ReplacementEvent

        public ReplacementEvent​(ResourceEvent.Type type,
                                Replacement... states)
        Constructs a new event about a given replacement.
        Parameters:
        type - the type of the event reflecting the cause of it (creation, deletion, ...)
        states - the replacement concerned by the event as it was before the cause of that event and once the cause was done. If there is no state before the cause, then just passe the state after (case of the creation). If there is no state after the cause, then just passe the state before (case of the deletion).