Class DeterministicJackson3SnapshotSerializer
java.lang.Object
au.com.origin.snapshots.jackson3.serializers.v1.Jackson3SnapshotSerializer
au.com.origin.snapshots.jackson3.serializers.v1.DeterministicJackson3SnapshotSerializer
- All Implemented Interfaces:
au.com.origin.snapshots.serializers.SnapshotSerializer,BiFunction<Object,au.com.origin.snapshots.SnapshotSerializerContext, au.com.origin.snapshots.Snapshot>
Attempts to deterministically render a snapshot.
This can help in situations where collections are rendering in a different order on subsequent runs.
Note that collections will be ordered which mar or may not be desirable given your use case.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected tools.jackson.databind.json.JsonMapper.Builderconfigure(tools.jackson.databind.json.JsonMapper.Builder builder) Methods inherited from class au.com.origin.snapshots.jackson3.serializers.v1.Jackson3SnapshotSerializer
apply, getOutputFormat, shouldFindAndRegisterModulesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
DeterministicJackson3SnapshotSerializer
public DeterministicJackson3SnapshotSerializer()
-
-
Method Details
-
configure
protected tools.jackson.databind.json.JsonMapper.Builder configure(tools.jackson.databind.json.JsonMapper.Builder builder) - Overrides:
configurein classJackson3SnapshotSerializer
-