Skip navigation links

Package cz.auderis.tools.change

Facilitates detection of property changes.

See: Description

Package cz.auderis.tools.change Description

Facilitates detection of property changes.

There may be two modes of operation, explicit and implicit change recording.

Explicit change recording depends on the user of change tracker to invoke appropriate methods, such as ChangeTracker.markChange(). The programming idiom would be:

     ChangeTracker tracker = ...
     ...
     if (propertyNameWasChanged) {
         tracker.markChange("name");
     }
 

Implicit change recording allows to insert change tracking operation as a part of property setting pipeline. The usual idiom is:

     BasicChangeTracker tracker = ...
     ...
     object.setName(tracker.updateString( object.getName(), newName, "name" ));
     object.setAge(tracker.updateInt( object.getAge(), newAge, "age" ));
 
Version:
1.0
Author:
Boleslav Bobcik <bbobcik@gmail.com>
Skip navigation links

Copyright © 2014 Boleslav Bobcik - Auderis. All rights reserved.