- All Known Implementing Classes:
ArraySnapshotNodeFactory,ClassSnapshotNodeFactory,CompoundSnapshotNodeFactory,DefaultSnapshotNodeFactory,IgnoreSnapshotNodeFactory,MapSnapshotNodeFactory,ReferenceSnapshotNodeFactory
public interface SnapshotNodeFactory
Creates a
SnapshotNode based on values.- Author:
- Peter Lamby
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this Factory is responsible fortype.@Nullable SnapshotNodetoSnapshotNode(Object value) Creates anSnapshotNodeforvalue.
-
Method Details
-
supports
Determines if this Factory is responsible fortype.- Parameters:
type- The type.- Returns:
trueif the type is supported.
-
toSnapshotNode
- Parameters:
value- The value for which to create an SnapshotNode.- Returns:
- The created node
-