java.lang.Object
de.serra.so_dirty.sn.MapSnapshotNode
- All Implemented Interfaces:
SnapshotNode
Snapshot of a map and its entries.
- Author:
- Peter Lamby
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSnapshot of a single entry of a map. -
Constructor Summary
ConstructorsConstructorDescriptionMapSnapshotNode(Object value, Collection<MapSnapshotNode.MapMemberSnapshotNode> entries) Constructs. -
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
-
MapSnapshotNode
Constructs.- Parameters:
value- The map instance.entries- The entries of the map.
-
-
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.
-