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 forEncoderContextinstances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncoderContextbuild()Build an instance ofEncoderContext.EncoderContext.BuilderisEncodingCollectibleDocument(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
-
-