java.lang.Object
de.serra.so_dirty.sn.CompoundSnapshotNodeFactory
- All Implemented Interfaces:
SnapshotNodeFactory
- Direct Known Subclasses:
DefaultSnapshotNodeFactory
SnapshotNodeFactory that delegates to an inner list of factories.- Author:
- Peter Lamby
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundSnapshotNodeFactory(SnapshotNodeFactory @Nullable ... inner) Constructs. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SnapshotNodeFactory factory) Add a factory to the list of factories.booleanDetermines if this Factory is responsible fortype.@Nullable SnapshotNodetoSnapshotNode(Object value) Creates anSnapshotNodeforvalue.
-
Constructor Details
-
CompoundSnapshotNodeFactory
Constructs.- Parameters:
inner- The actual factories.
-
-
Method Details
-
add
Add a factory to the list of factories.- Parameters:
factory- The factory to add.
-
supports
Description copied from interface:SnapshotNodeFactoryDetermines if this Factory is responsible fortype.- Specified by:
supportsin interfaceSnapshotNodeFactory- Parameters:
type- The type.- Returns:
trueif the type is supported.
-
toSnapshotNode
Description copied from interface:SnapshotNodeFactory- Specified by:
toSnapshotNodein interfaceSnapshotNodeFactory- Parameters:
value- The value for which to create an SnapshotNode.- Returns:
- The created node
-