public class ChangeMonitor extends java.lang.Object implements ChangeMonitorable
ChangeMonitorable
.Constructor and Description |
---|
ChangeMonitor() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasChanged()
Returns if one or more changes (calls of
registerChange() ) have happened since the
last call of reset() . |
void |
registerChange()
This method should be called of a change happened.
|
void |
reset()
hasChanged() will return false after the call of this method until the
next call of registerChange() . |
public ChangeMonitor()
public boolean hasChanged()
registerChange()
) have happened since the
last call of reset()
.hasChanged
in interface ChangeMonitorable
true
if a change happened, false
otherwisepublic void registerChange()
registerChange
in interface ChangeMonitorable
public void reset()
hasChanged()
will return false
after the call of this method until the
next call of registerChange()
.reset
in interface ChangeMonitorable