Class StreamWriteConstraints.Builder

  • Enclosing class:
    StreamWriteConstraints

    public static final class StreamWriteConstraints.Builder
    extends java.lang.Object
    • Method Detail

      • maxNestingDepth

        public StreamWriteConstraints.Builder maxNestingDepth​(int maxNestingDepth)
        Sets the maximum nesting depth. The depth is a count of objects and arrays that have not been closed, `{` and `[` respectively.
        Parameters:
        maxNestingDepth - the maximum depth
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - if the maxNestingDepth is set to a negative value