Klasse ArraySnapshotNode

java.lang.Object
de.serra.so_dirty.sn.ArraySnapshotNode
Alle implementierten Schnittstellen:
SnapshotNode

public class ArraySnapshotNode extends Object implements SnapshotNode
Snapshot of an array and its members.
Autor:
Peter Lamby
  • Konstruktordetails

    • ArraySnapshotNode

      public ArraySnapshotNode(Object value, @Nullable SnapshotNode[] members)
      Constucts
      Parameter:
      value - The instance of the array.
      members - an array of nodes for every member of the array. The array must contain null if the member at that index itself is null.
  • Methodendetails

    • value

      public Object value()
      Beschreibung aus Schnittstelle kopiert: SnapshotNode
      The 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.

      Angegeben von:
      value in Schnittstelle SnapshotNode
      Gibt zurück:
      The value that was used to create the snapshot.
    • diff

      public DifferenceNode diff(@Nullable SnapshotNode other, String path)
      Beschreibung aus Schnittstelle kopiert: SnapshotNode
      Compare this node to the other one.

      path is used to provide context to the returned DifferenceNode.

      Angegeben von:
      diff in Schnittstelle SnapshotNode
      Parameter:
      other - The other node.
      path - The relative path of this and other.
      Gibt zurück:
      a DifferenceNode describing the differences. Never null.