Module spring.data.mongodb
Interface MongoJsonSchema.ConflictResolutionFunction
- Enclosing interface:
- MongoJsonSchema
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A resolution function that is called on conflicting paths when trying to merge properties with different values
into a single value.
- Since:
- 3.4
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceThe result after processing a conflict when merging schemas. -
Method Summary
Modifier and TypeMethodDescriptionresolveConflict(MongoJsonSchema.ConflictResolutionFunction.Path path, Object left, Object right) Resolve the conflict for two values under the samepath.
-
Method Details
-
resolveConflict
MongoJsonSchema.ConflictResolutionFunction.Resolution resolveConflict(MongoJsonSchema.ConflictResolutionFunction.Path path, @Nullable Object left, @Nullable Object right) Resolve the conflict for two values under the samepath.- Parameters:
path- theMongoJsonSchema.ConflictResolutionFunction.Pathleading to the conflict.left- can be null.right- can be null.- Returns:
- never null.
-