Class EncoderContext.Builder

  • Enclosing class:
    EncoderContext


    public static final class EncoderContext.Builder
    extends Object
    A builder for EncoderContext instances.
    • 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 of EncoderContext.
        Returns:
        the encoder context