Package org.bson.codecs
Class DecoderContext.Builder
java.lang.Object
org.bson.codecs.DecoderContext.Builder
- Enclosing class:
- DecoderContext
A builder for
DecoderContext
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance ofDecoderContext
.checkedDiscriminator
(boolean checkedDiscriminator) Sets the checkedDiscriminatorboolean
-
Method Details
-
hasCheckedDiscriminator
public boolean hasCheckedDiscriminator()- Returns:
- true if the discriminator has been checked
-
checkedDiscriminator
Sets the checkedDiscriminator- Parameters:
checkedDiscriminator
- the checkedDiscriminator- Returns:
- this
-
build
Build an instance ofDecoderContext
.- Returns:
- the decoder context
-