Package com.deltawalker.script
Interface ComparisonListener
public interface ComparisonListener
Receives the
ComparisonEvents of a comparison. Register a listener
with Comparison.addListener(ComparisonListener) or pass one to
Comparisons.create(Comparison.Type, String[], ComparisonListener).
Listeners are a legacy mechanism and are not recommended for new scripts:
await the operation of interest instead, for example
await comp.compare() rather than waiting for a
Comparison.State.COMPARE_ENDED event.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomparisonChanged(ComparisonEvent event) Called when the state of the sourceComparisonhas changed.
-
Method Details
-
comparisonChanged
Called when the state of the sourceComparisonhas changed.- Parameters:
event- the event describing the new state and its source- Since:
- 2.0
- See Also:
-