de.gruschke.dasync
Class PrintDiffMapComparer

java.lang.Object
  |
  +--de.gruschke.dasync.MapComparer
        |
        +--de.gruschke.dasync.PrintDiffMapComparer

public class PrintDiffMapComparer
extends MapComparer

Print the Differences of two Maps to System.out

Author:
Boris Gruschke

Fields inherited from class de.gruschke.dasync.MapComparer
verbose
 
Constructor Summary
PrintDiffMapComparer()
           
 
Method Summary
protected  void inOneOnly(java.lang.Object key, java.lang.Object value)
          Key appears in Map one only
protected  void inTwoOnly(java.lang.Object key, java.lang.Object value)
          Key appears in Map two only
protected  void oneAndTwoDiffer(java.lang.Object key, java.lang.Object valueOne, java.lang.Object valueTwo)
          Key appears in both Maps but with different values
protected  void oneAndTwoEqual(java.lang.Object key, java.lang.Object value)
          Key appears in both Maps with equal values
 
Methods inherited from class de.gruschke.dasync.MapComparer
compare, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintDiffMapComparer

public PrintDiffMapComparer()
Method Detail

inOneOnly

protected void inOneOnly(java.lang.Object key,
                         java.lang.Object value)
Description copied from class: MapComparer
Key appears in Map one only
Overrides:
inOneOnly in class MapComparer
Tags copied from class: MapComparer
Parameters:
key - key object from Map one
value - DataRow object from Map one

inTwoOnly

protected void inTwoOnly(java.lang.Object key,
                         java.lang.Object value)
Description copied from class: MapComparer
Key appears in Map two only
Overrides:
inTwoOnly in class MapComparer
Tags copied from class: MapComparer
Parameters:
key - key object from Map two
value - DataRow object from Map two

oneAndTwoDiffer

protected void oneAndTwoDiffer(java.lang.Object key,
                               java.lang.Object valueOne,
                               java.lang.Object valueTwo)
Description copied from class: MapComparer
Key appears in both Maps but with different values
Overrides:
oneAndTwoDiffer in class MapComparer
Tags copied from class: MapComparer
Parameters:
key - key object from one of the Maps
valueOne - DataRow object from Map one
valueTwo - DataRow object from Map two

oneAndTwoEqual

protected void oneAndTwoEqual(java.lang.Object key,
                              java.lang.Object value)
Description copied from class: MapComparer
Key appears in both Maps with equal values
Overrides:
oneAndTwoEqual in class MapComparer
Tags copied from class: MapComparer
Parameters:
key - key object from one of the Maps
value - DataRow object from one of the Maps


Boris Gruschke, 2000-11-11
License: GPL