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
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PrintDiffMapComparer
public PrintDiffMapComparer()
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 onevalue
- 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 twovalue
- 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 MapsvalueOne
- DataRow
object from Map onevalueTwo
- 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 Mapsvalue
- DataRow
object from one of the Maps
Boris Gruschke, 2000-11-11
License: GPL