Package org.bson.codecs
Class DecoderContext.Builder
- java.lang.Object
-
- org.bson.codecs.DecoderContext.Builder
-
- Enclosing class:
- DecoderContext
public static final class DecoderContext.Builder extends java.lang.Object
A builder forDecoderContext
instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecoderContext
build()
Build an instance ofDecoderContext
.DecoderContext.Builder
checkedDiscriminator(boolean checkedDiscriminator)
Sets the checkedDiscriminatorboolean
hasCheckedDiscriminator()
-
-
-
Method Detail
-
hasCheckedDiscriminator
public boolean hasCheckedDiscriminator()
- Returns:
- true if the discriminator has been checked
-
checkedDiscriminator
public DecoderContext.Builder checkedDiscriminator(boolean checkedDiscriminator)
Sets the checkedDiscriminator- Parameters:
checkedDiscriminator
- the checkedDiscriminator- Returns:
- this
-
build
public DecoderContext build()
Build an instance ofDecoderContext
.- Returns:
- the decoder context
-
-