java.lang.Object
de.serra.so_dirty.sn.ArraySnapshotNode
- All Implemented Interfaces:
SnapshotNode
Snapshot of an array and its 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
-
ArraySnapshotNode
Constucts- Parameters:
value- The instance of the array.members- an array of nodes for every member of the array. The array must containnullif the member at that index itself is null.
-
-
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.
-