java.lang.Object
de.serra.so_dirty.sn.MapSnapshotNodeFactory
- All Implemented Interfaces:
SnapshotNodeFactory
Factory that creates an
MapSnapshotNode.
Experimental and not fully fleshed out.
- Author:
- Peter Lamby
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this Factory is responsible fortype.toSnapshotNode(Object value) Creates anSnapshotNodeforvalue.
-
Constructor Details
-
MapSnapshotNodeFactory
Constructs.- Parameters:
keyAndValueFactory- The factory to use for the keys and values of the map.
-
-
Method Details
-
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
-