Modifier and Type | Class | Description |
---|---|---|
static class |
EncoderContext.Builder |
A builder for
EncoderContext instances. |
Modifier and Type | Method | Description |
---|---|---|
static EncoderContext.Builder |
builderβ() |
Create a builder.
|
<T> void |
encodeWithChildContextβ(Encoder<T> encoder,
BsonWriter writer,
T value) |
Creates a child context based on this and serializes the value with it to the writer.
|
EncoderContext |
getChildContextβ() |
Gets a child context based on this.
|
boolean |
isEncodingCollectibleDocumentβ() |
Returns true if the the value to be encoded is a document that will be put in a MongoDB collection.
|
public static EncoderContext.Builder builderβ()
public boolean isEncodingCollectibleDocumentβ()
public <T> void encodeWithChildContextβ(Encoder<T> encoder, BsonWriter writer, T value)
T
- the type of the valueencoder
- the encoder to encode value withwriter
- the writer to encode tovalue
- the value to encodepublic EncoderContext getChildContextβ()