Package org.bson.codecs
Class EncoderContext.Builder
- java.lang.Object
-
- org.bson.codecs.EncoderContext.Builder
-
- Enclosing class:
- EncoderContext
public static final class EncoderContext.Builder extends Object
A builder forEncoderContext
instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncoderContext
build()
Build an instance ofEncoderContext
.EncoderContext.Builder
isEncodingCollectibleDocument​(boolean encodingCollectibleDocument)
Set to true if the the value to be encoded is a document that will be put in a MongoDB collection.
-
-
-
Method Detail
-
isEncodingCollectibleDocument
public EncoderContext.Builder isEncodingCollectibleDocument​(boolean encodingCollectibleDocument)
Set to true if the 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
public EncoderContext build()
Build an instance ofEncoderContext
.- Returns:
- the encoder context
-
-