Class NoChange<T>
- java.lang.Object
-
- net.officefloor.model.impl.change.AbstractChange<T>
-
- net.officefloor.model.impl.change.NoChange<T>
-
- All Implemented Interfaces:
Change<T>
public class NoChange<T> extends AbstractChange<T>
Change
that does nothing.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply()
Applies thisChange
.boolean
canApply()
Indicates if can apply thisChange
.void
revert()
Reverts thisChange
(after being applied).-
Methods inherited from class net.officefloor.model.impl.change.AbstractChange
getChangeDescription, getConflicts, getTarget, setConflicts
-
-
-
-
Method Detail
-
canApply
public boolean canApply()
Description copied from interface:Change
Indicates if can apply this
Change
.Typically there will be
Conflict
instances providing detail on why theChange
can not be applied.- Specified by:
canApply
in interfaceChange<T>
- Overrides:
canApply
in classAbstractChange<T>
- Returns:
true
if can apply thisChange
.- See Also:
Change.getConflicts()
-
-