Class DecoderContext.Builder

java.lang.Object
org.bson.codecs.DecoderContext.Builder
Enclosing class:
DecoderContext

public static final class DecoderContext.Builder extends Object
A builder for DecoderContext instances.
  • Method Details

    • 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 of DecoderContext.
      Returns:
      the decoder context