Class NoChange<T>

  • All Implemented Interfaces:
    Change<T>

    public class NoChange<T>
    extends AbstractChange<T>
    Change that does nothing.
    Author:
    Daniel Sagenschneider
    • Constructor Detail

      • NoChange

        public NoChange​(T target,
                        java.lang.String changeDescription,
                        Conflict... conflicts)
        Initiate.
        Parameters:
        target - Target of the Change.
        changeDescription - Description of the Change.
        conflicts - Conflict instances.
      • NoChange

        public NoChange​(T target,
                        java.lang.String changeDescription,
                        java.lang.String... conflictDescriptions)
        Initiate.
        Parameters:
        target - Target of the Change.
        changeDescription - Description of the Change.
        conflictDescriptions - Descriptions for any Conflict instances added to this Change.
    • Method Detail

      • apply

        public void apply()
        Description copied from interface: Change
        Applies this Change.
      • revert

        public void revert()
        Description copied from interface: Change

        Reverts this Change (after being applied).

        This enables do/undo functionality.