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 Details

    • comparisonChanged

      void comparisonChanged(ComparisonEvent event)
      Called when the state of the source Comparison has changed.
      Parameters:
      event - the event describing the new state and its source
      Since:
      2.0
      See Also: