java.lang.Object
de.serra.so_dirty.sn.IgnoreSnapshotNodeFactory
- Alle implementierten Schnittstellen:
SnapshotNodeFactory
Always returns
null when SnapshotNodeFactory.toSnapshotNode(Object) is called.
Used to exclude some types that should not included in Snapshots.
Add this factory first to CompoundSnapshotNodeFactory.add(SnapshotNodeFactory) to make sure no other factory sees the value.
- Autor:
- Peter Lamby
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdds a type that should be ignored by this Factory.booleanDetermines if this Factory is responsible fortype.@Nullable SnapshotNodetoSnapshotNode(Object value) Creates anSnapshotNodeforvalue.
-
Konstruktordetails
-
IgnoreSnapshotNodeFactory
public IgnoreSnapshotNodeFactory()Constructs.
-
-
Methodendetails
-
add
Adds a type that should be ignored by this Factory.- Parameter:
type- The type to ignore.includeSubtypes- whether to also ignore subtypes oftype.
-
supports
Beschreibung aus Schnittstelle kopiert:SnapshotNodeFactoryDetermines if this Factory is responsible fortype.- Angegeben von:
supportsin SchnittstelleSnapshotNodeFactory- Parameter:
type- The type.- Gibt zurück:
trueif the type is supported.
-
toSnapshotNode
Beschreibung aus Schnittstelle kopiert:SnapshotNodeFactory- Angegeben von:
toSnapshotNodein SchnittstelleSnapshotNodeFactory- Parameter:
value- The value for which to create an SnapshotNode.- Gibt zurück:
- The created node
-