java.lang.Object
de.serra.so_dirty.sn.ReferenceSnapshotNode
- All Implemented Interfaces:
SnapshotNode
Can diff an
SnapshotNode by DifferenceType.REFERENCE, DifferenceType.EQUALITY and
DifferenceType.TYPE_CHANGE. Does not check any members.- Author:
- Peter Lamby
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiff(@Nullable SnapshotNode other, String path) Compare this node to theotherone.value()The value that was used to create the snapshot.
-
Constructor Details
-
ReferenceSnapshotNode
Constructs- Parameters:
value- The instance to snapshot.
-
-
Method Details
-
value
Description copied from interface:SnapshotNodeThe value that was used to create the snapshot.Please not that the interior of the object may have been modified since the snapshot was taken.
- Specified by:
valuein interfaceSnapshotNode- Returns:
- The value that was used to create the snapshot.
-
diff
Description copied from interface:SnapshotNodeCompare this node to theotherone.pathis used to provide context to the returnedDifferenceNode.- Specified by:
diffin interfaceSnapshotNode- Parameters:
other- The other node.path- The relative path ofthisandother.- Returns:
- a
DifferenceNodedescribing the differences. Nevernull.
-