public interface Taggable
revertToTag()) but no "commit" mode. It's named
Taggable to avoid confusion with database or other real transactions.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasChangedSinceTagging()
Returns if the content of the object has changed since setting the tag.
|
boolean |
isTagged()
Returns if the object is currently tagged.
|
void |
revertToTag()
Reverts all changes made since setting the tag and clears internal state.
|
void |
tag()
Start memorizing changes.
|
void |
untag()
Stop memorizing changes and clear internal state.
|
void tag()
void untag()
boolean isTagged()
true else false.void revertToTag()
boolean hasChangedSinceTagging()
true else
false.