Interface MongoJsonSchema.ConflictResolutionFunction.Resolution
- Enclosing interface:
- MongoJsonSchema.ConflictResolutionFunction
public static interface MongoJsonSchema.ConflictResolutionFunction.Resolution
extends Map.Entry<String,Object>
The result after processing a conflict when merging schemas. May indicate to
skip
the entry
entirely.- Since:
- 3.4
- Author:
- Christoph Strobl
-
Field Summary
FieldsModifier and TypeFieldDescriptionResolution -
Method Summary
Modifier and TypeMethodDescriptionConstruct a resolution from akey
andvalue
.ofValue
(MongoJsonSchema.ConflictResolutionFunction.Path path, Object value) Construct a resolution for aMongoJsonSchema.ConflictResolutionFunction.Path
using the givenvalue
.default Object
skip()
Obtain aMongoJsonSchema.ConflictResolutionFunction.Resolution
that will skip the entry and proceed computation.
-
Field Details
-
SKIP
Resolution
-
-
Method Details
-
setValue
-
skip
Obtain aMongoJsonSchema.ConflictResolutionFunction.Resolution
that will skip the entry and proceed computation.- Returns:
- never null.
-
ofValue
static MongoJsonSchema.ConflictResolutionFunction.Resolution ofValue(MongoJsonSchema.ConflictResolutionFunction.Path path, Object value) Construct a resolution for aMongoJsonSchema.ConflictResolutionFunction.Path
using the givenvalue
.- Parameters:
path
- the conflicting path.value
- the value to apply.- Returns:
-
ofValue
Construct a resolution from akey
andvalue
.- Parameters:
key
- name of the path segment, typicallyMongoJsonSchema.ConflictResolutionFunction.Path.currentElement()
value
- the value to apply.- Returns:
-