Class StreamWriteConstraints.Builder
java.lang.Object
tools.jackson.core.StreamWriteConstraints.Builder
- Enclosing class:
StreamWriteConstraints
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()maxNestingDepth(int maxNestingDepth) Sets the maximum nesting depth.
-
Field Details
-
maxNestingDepth
private int maxNestingDepth
-
-
Constructor Details
-
Builder
Builder() -
Builder
Builder(int maxNestingDepth) -
Builder
Builder(StreamWriteConstraints src)
-
-
Method Details
-
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:
IllegalArgumentException- if the maxNestingDepth is set to a negative value
-
build
-