Schnittstelle SnapshotNodeFactory

Alle bekannten Implementierungsklassen:
ArraySnapshotNodeFactory, ClassSnapshotNodeFactory, CompoundSnapshotNodeFactory, DefaultSnapshotNodeFactory, IgnoreSnapshotNodeFactory, MapSnapshotNodeFactory, ReferenceSnapshotNodeFactory

public interface SnapshotNodeFactory
Creates a SnapshotNode based on values.
Autor:
Peter Lamby
  • Methodendetails

    • supports

      boolean supports(Class<?> type)
      Determines if this Factory is responsible for type.
      Parameter:
      type - The type.
      Gibt zurück:
      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.
      Parameter:
      value - The value for which to create an SnapshotNode.
      Gibt zurück:
      The created node