Class CompoundChange

    • Constructor Detail

      • CompoundChange

        public CompoundChange()
    • Method Detail

      • apply

        public void apply()
        Description copied from interface: IChange
        Applies the change.
        Specified by:
        apply in interface IChange
      • addChange

        public void addChange​(IChange change)
        Adds the provided change to this compound change.
        Parameters:
        change - change to add.
      • getSimplifiedChange

        public IChange getSimplifiedChange()
        Returns:
        simplified change, if it possible to simplify this compound change. If this compound change if empty, returns IChange.NO_CHANGE. If there is only one change, returns this change. In other cases, returns this compound change.