net.sf.molae.pipe.comod
Class DummyMark
java.lang.Object
|
+--net.sf.molae.pipe.comod.DummyMark
- All Implemented Interfaces:
- ModificationMark
- public final class DummyMark
- extends Object
- implements ModificationMark
Implementation of ModificationMark that never changes its state.
Implements singleton design pattern.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static DummyMark getInstance()
- Returns the singleton instance of this class.
- Returns:
- the singleton instance of this class.
createChild
public ModificationMark createChild()
- Description copied from interface:
ModificationMark
- Creates a new child of this mark.
- Specified by:
createChild in interface ModificationMark
- Following copied from interface:
net.sf.molae.pipe.comod.ModificationMark
- Returns:
- a new child of this mark.
checkForComodification
public void checkForComodification()
- Does nothing.
- Specified by:
checkForComodification in interface ModificationMark
- Following copied from interface:
net.sf.molae.pipe.comod.ModificationMark
- Throws:
ConcurrentModificationException - if the mother object has
changed since the last synchronization.
markModification
public void markModification()
- Does nothing.
- Specified by:
markModification in interface ModificationMark