Interface SnapshotNodeFactory

All Known Implementing Classes:
ArraySnapshotNodeFactory, ClassSnapshotNodeFactory, CompoundSnapshotNodeFactory, DefaultSnapshotNodeFactory, IgnoreSnapshotNodeFactory, MapSnapshotNodeFactory, ReferenceSnapshotNodeFactory

public interface SnapshotNodeFactory
Creates a SnapshotNode based on values.
Author:
Peter Lamby
  • Method Details

    • supports

      boolean supports(Class<?> type)
      Determines if this Factory is responsible for type.
      Parameters:
      type - The type.
      Returns:
      true if the type is supported.
    • toSnapshotNode

      @Nullable SnapshotNode toSnapshotNode(Object value)
      Creates an SnapshotNode for value. Only call this if the type is supported.
      Parameters:
      value - The value for which to create an SnapshotNode.
      Returns:
      The created node