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 akeyandvalue.ofValue(MongoJsonSchema.ConflictResolutionFunction.Path path, Object value) Construct a resolution for aMongoJsonSchema.ConflictResolutionFunction.Pathusing the givenvalue.default Objectskip()Obtain aMongoJsonSchema.ConflictResolutionFunction.Resolutionthat will skip the entry and proceed computation.
-
Field Details
-
SKIP
Resolution
-
-
Method Details
-
setValue
-
skip
Obtain aMongoJsonSchema.ConflictResolutionFunction.Resolutionthat 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.Pathusing the givenvalue.- Parameters:
path- the conflicting path.value- the value to apply.- Returns:
-
ofValue
Construct a resolution from akeyandvalue.- Parameters:
key- name of the path segment, typicallyMongoJsonSchema.ConflictResolutionFunction.Path.currentElement()value- the value to apply.- Returns:
-