org.oddjob.beancmpr.matchables
Class ComparisonGatheringProcessor

java.lang.Object
  extended by org.oddjob.beancmpr.matchables.ComparisonGatheringProcessor
All Implemented Interfaces:
MultiItemComparisonCounts, BeanCmprResultsHandler

public class ComparisonGatheringProcessor
extends Object
implements BeanCmprResultsHandler, MultiItemComparisonCounts

A BeanCmprResultsHandler that counts matches, before passing the result onto a delegate.

Author:
rob

Constructor Summary
ComparisonGatheringProcessor(BeanCmprResultsHandler delegate)
           
 
Method Summary
 void compared(MultiValueComparison<Matchable> comparison)
          Two Matchables have been compared by their keys.
 int getBreaksCount()
           
 int getComparedCount()
           
 int getDifferentCount()
           
 int getMatchedCount()
           
 int getXMissingCount()
           
 int getYMissingCount()
           
 void xMissing(MatchableGroup ys)
          Data is missing from X.
 void yMissing(MatchableGroup xs)
          Data is missing from Y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparisonGatheringProcessor

public ComparisonGatheringProcessor(BeanCmprResultsHandler delegate)
Method Detail

xMissing

public void xMissing(MatchableGroup ys)
Description copied from interface: BeanCmprResultsHandler
Data is missing from X.

Specified by:
xMissing in interface BeanCmprResultsHandler
Parameters:
ys - The y data.

yMissing

public void yMissing(MatchableGroup xs)
Description copied from interface: BeanCmprResultsHandler
Data is missing from Y.

Specified by:
yMissing in interface BeanCmprResultsHandler
Parameters:
xs - The x data.

compared

public void compared(MultiValueComparison<Matchable> comparison)
Description copied from interface: BeanCmprResultsHandler
Two Matchables have been compared by their keys.

Specified by:
compared in interface BeanCmprResultsHandler
Parameters:
comparison - The result of the comparison.

getXMissingCount

public int getXMissingCount()
Specified by:
getXMissingCount in interface MultiItemComparisonCounts

getYMissingCount

public int getYMissingCount()
Specified by:
getYMissingCount in interface MultiItemComparisonCounts

getMatchedCount

public int getMatchedCount()
Specified by:
getMatchedCount in interface MultiItemComparisonCounts

getDifferentCount

public int getDifferentCount()
Specified by:
getDifferentCount in interface MultiItemComparisonCounts

getBreaksCount

public int getBreaksCount()
Specified by:
getBreaksCount in interface MultiItemComparisonCounts

getComparedCount

public int getComparedCount()
Specified by:
getComparedCount in interface MultiItemComparisonCounts


Copyright © 2013. All Rights Reserved.