Package org.bson.codecs
Class EncoderContext.Builder
java.lang.Object
org.bson.codecs.EncoderContext.Builder
- Enclosing class:
- EncoderContext
A builder for
EncoderContext
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance ofEncoderContext
.isEncodingCollectibleDocument
(boolean encodingCollectibleDocument) Set to true if the value to be encoded is a document that will be put in a MongoDB collection.
-
Method Details
-
isEncodingCollectibleDocument
Set to true if the value to be encoded is a document that will be put in a MongoDB collection.- Parameters:
encodingCollectibleDocument
- true if the value to be encoded is a document that will be put in a MongoDB collection- Returns:
- this
-
build
Build an instance ofEncoderContext
.- Returns:
- the encoder context
-