| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>JsonArrayBuilder (JSON Processing API documentation)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../script.js"></script> |
| <script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../jquery/jquery-3.3.1.js"></script> |
| <script type="text/javascript" src="../../../jquery/jquery-migrate-3.0.1.js"></script> |
| <script type="text/javascript" src="../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="JsonArrayBuilder (JSON Processing API documentation)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":6,"i1":6,"i2":6,"i3":18,"i4":18,"i5":18,"i6":18,"i7":18,"i8":18,"i9":18,"i10":18,"i11":18,"i12":18,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":18,"i21":6,"i22":18,"i23":6,"i24":18,"i25":18,"i26":18,"i27":18,"i28":18,"i29":18,"i30":18,"i31":18,"i32":18,"i33":18,"i34":18,"i35":18}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../index.html">Overview</a></li> |
| <li><a href="../../module-summary.html">Module</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/JsonArrayBuilder.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><br>JSON Processing API v2.0.0</div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="moduleLabelInType">Module</span> <a href="../../module-summary.html">jakarta.json</a></div> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">jakarta.json</a></div> |
| <h2 title="Interface JsonArrayBuilder" class="title">Interface JsonArrayBuilder</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <pre>public interface <span class="typeNameLabel">JsonArrayBuilder</span></pre> |
| <div class="block">A builder for creating <a href="JsonArray.html" title="interface in jakarta.json"><code>JsonArray</code></a> models from scratch, and for |
| modifying a existing <code>JsonArray</code>. |
| <p>A <code>JsonArrayBuilder</code> can start with an empty or a non-empty |
| JSON array model. This interface provides methods to add, insert, remove |
| and replace values in the JSON array model.</p> |
| <p>Methods in this class can be chained to perform multiple values to |
| the array.</p> |
| |
| <p>The class <a href="Json.html" title="class in jakarta.json"><code>Json</code></a> contains methods to create the builder |
| object. The example code below shows how to build an empty <code>JsonArray</code> |
| instance. |
| <pre> |
| <code> |
| JsonArray array = Json.createArrayBuilder().build(); |
| </code> |
| </pre> |
| |
| <p>The class <a href="JsonBuilderFactory.html" title="interface in jakarta.json"><code>JsonBuilderFactory</code></a> also contains methods to create |
| <code>JsonArrayBuilder</code> instances. A factory instance can be used to create |
| multiple builder instances with the same configuration. This the preferred |
| way to create multiple instances. |
| |
| The example code below shows how to build a <code>JsonArray</code> object |
| that represents the following JSON array: |
| |
| <pre> |
| <code> |
| [ |
| { "type": "home", "number": "212 555-1234" }, |
| { "type": "fax", "number": "646 555-4567" } |
| ] |
| </code> |
| </pre> |
| |
| <p>The following code creates the JSON array above: |
| |
| <pre> |
| <code> |
| JsonBuilderFactory factory = Json.createBuilderFactory(config); |
| JsonArray value = factory.createArrayBuilder() |
| .add(factory.createObjectBuilder() |
| .add("type", "home") |
| .add("number", "212 555-1234")) |
| .add(factory.createObjectBuilder() |
| .add("type", "fax") |
| .add("number", "646 555-4567")) |
| .build(); |
| </code> |
| </pre> |
| |
| <p>This class does <em>not</em> allow <code>null</code> to be used as a |
| value while building the JSON array</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonObjectBuilder.html" title="interface in jakarta.json"><code>JsonObjectBuilder</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(boolean)">add</a></span>​(boolean value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a <a href="JsonValue.html#TRUE"><code>JsonValue.TRUE</code></a> or <a href="JsonValue.html#FALSE"><code>JsonValue.FALSE</code></a> value to the |
| array.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(double)">add</a></span>​(double value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int)">add</a></span>​(int value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,boolean)">add</a></span>​(int index, |
| boolean value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a <a href="JsonValue.html#TRUE"><code>JsonValue.TRUE</code></a> or <a href="JsonValue.html#FALSE"><code>JsonValue.FALSE</code></a> value to the |
| array at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,double)">add</a></span>​(int index, |
| double value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,int)">add</a></span>​(int index, |
| int value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,long)">add</a></span>​(int index, |
| long value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,jakarta.json.JsonArrayBuilder)">add</a></span>​(int index, |
| <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> builder)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a <a href="JsonArray.html" title="interface in jakarta.json"><code>JsonArray</code></a> from an array builder to the array at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,jakarta.json.JsonObjectBuilder)">add</a></span>​(int index, |
| <a href="JsonObjectBuilder.html" title="interface in jakarta.json">JsonObjectBuilder</a> builder)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a <a href="JsonObject.html" title="interface in jakarta.json"><code>JsonObject</code></a> from an object builder to the array at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,jakarta.json.JsonValue)">add</a></span>​(int index, |
| <a href="JsonValue.html" title="interface in jakarta.json">JsonValue</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Inserts a value to the array at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,java.lang.String)">add</a></span>​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonString.html" title="interface in jakarta.json"><code>JsonString</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,java.math.BigDecimal)">add</a></span>​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,java.math.BigInteger)">add</a></span>​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(long)">add</a></span>​(long value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(jakarta.json.JsonArrayBuilder)">add</a></span>​(<a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> builder)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a <a href="JsonArray.html" title="interface in jakarta.json"><code>JsonArray</code></a> from an array builder to the array.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(jakarta.json.JsonObjectBuilder)">add</a></span>​(<a href="JsonObjectBuilder.html" title="interface in jakarta.json">JsonObjectBuilder</a> builder)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a <a href="JsonObject.html" title="interface in jakarta.json"><code>JsonObject</code></a> from an object builder to the array.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(jakarta.json.JsonValue)">add</a></span>​(<a href="JsonValue.html" title="interface in jakarta.json">JsonValue</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(java.lang.String)">add</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonString.html" title="interface in jakarta.json"><code>JsonString</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(java.math.BigDecimal)">add</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(java.math.BigInteger)">add</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAll(jakarta.json.JsonArrayBuilder)">addAll</a></span>​(<a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> builder)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds all elements of the array in the specified array builder to the array.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addNull()">addNull</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a <a href="JsonValue.html#NULL"><code>JsonValue.NULL</code></a> value to the array.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addNull(int)">addNull</a></span>​(int index)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a <a href="JsonValue.html#NULL"><code>JsonValue.NULL</code></a> value to the array at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code><a href="JsonArray.html" title="interface in jakarta.json">JsonArray</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#build()">build</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the current array.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#remove(int)">remove</a></span>​(int index)</code></th> |
| <td class="colLast"> |
| <div class="block">Remove the value in the array at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,boolean)">set</a></span>​(int index, |
| boolean value)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with |
| a <a href="JsonValue.html#TRUE"><code>JsonValue.TRUE</code></a> or <a href="JsonValue.html#FALSE"><code>JsonValue.FALSE</code></a> value |
| at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,double)">set</a></span>​(int index, |
| double value)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,int)">set</a></span>​(int index, |
| int value)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,long)">set</a></span>​(int index, |
| long value)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,jakarta.json.JsonArrayBuilder)">set</a></span>​(int index, |
| <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> builder)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonArray.html" title="interface in jakarta.json"><code>JsonArray</code></a> from an array builder at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,jakarta.json.JsonObjectBuilder)">set</a></span>​(int index, |
| <a href="JsonObjectBuilder.html" title="interface in jakarta.json">JsonObjectBuilder</a> builder)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonObject.html" title="interface in jakarta.json"><code>JsonObject</code></a> from an object builder at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,jakarta.json.JsonValue)">set</a></span>​(int index, |
| <a href="JsonValue.html" title="interface in jakarta.json">JsonValue</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value at the |
| specified position.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,java.lang.String)">set</a></span>​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonString.html" title="interface in jakarta.json"><code>JsonString</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,java.math.BigDecimal)">set</a></span>​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,java.math.BigInteger)">set</a></span>​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setNull(int)">setNull</a></span>​(int index)</code></th> |
| <td class="colLast"> |
| <div class="block">Replaces a value in the array with |
| a <a href="JsonValue.html#NULL"><code>JsonValue.NULL</code></a> value at the specified position.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="add(jakarta.json.JsonValue)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(<a href="JsonValue.html" title="interface in jakarta.json">JsonValue</a> value)</pre> |
| <div class="block">Adds a value to the array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the JSON value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonString.html" title="interface in jakarta.json"><code>JsonString</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the string value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(java.math.BigDecimal)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a> value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(java.math.BigInteger)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a> value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(long value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(double value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NumberFormatException</a></code> - if the value is Not-a-Number (NaN) or |
| infinity</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(boolean value)</pre> |
| <div class="block">Adds a <a href="JsonValue.html#TRUE"><code>JsonValue.TRUE</code></a> or <a href="JsonValue.html#FALSE"><code>JsonValue.FALSE</code></a> value to the |
| array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the boolean value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="addNull()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addNull</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> addNull()</pre> |
| <div class="block">Adds a <a href="JsonValue.html#NULL"><code>JsonValue.NULL</code></a> value to the array.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(jakarta.json.JsonObjectBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(<a href="JsonObjectBuilder.html" title="interface in jakarta.json">JsonObjectBuilder</a> builder)</pre> |
| <div class="block">Adds a <a href="JsonObject.html" title="interface in jakarta.json"><code>JsonObject</code></a> from an object builder to the array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>builder</code> - the object builder</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified builder is null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(jakarta.json.JsonArrayBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature"><a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(<a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> builder)</pre> |
| <div class="block">Adds a <a href="JsonArray.html" title="interface in jakarta.json"><code>JsonArray</code></a> from an array builder to the array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>builder</code> - the array builder</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified builder is null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="addAll(jakarta.json.JsonArrayBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addAll</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> addAll​(<a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> builder)</pre> |
| <div class="block">Adds all elements of the array in the specified array builder to the array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>builder</code> - the array builder</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified builder is null</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,jakarta.json.JsonValue)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| <a href="JsonValue.html" title="interface in jakarta.json">JsonValue</a> value)</pre> |
| <div class="block">Inserts a value to the array at the specified position. Shifts the value |
| currently at that position (if any) and any subsequent values to the right |
| (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the JSON value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonString.html" title="interface in jakarta.json"><code>JsonString</code></a> at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the string value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,java.math.BigDecimal)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a> value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,java.math.BigInteger)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a> value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| int value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| long value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| double value)</pre> |
| <div class="block">Adds a value to the array as a <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NumberFormatException</a></code> - if the value is Not-a-Number (NaN) or |
| infinity</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| boolean value)</pre> |
| <div class="block">Adds a <a href="JsonValue.html#TRUE"><code>JsonValue.TRUE</code></a> or <a href="JsonValue.html#FALSE"><code>JsonValue.FALSE</code></a> value to the |
| array at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the boolean value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="addNull(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addNull</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> addNull​(int index)</pre> |
| <div class="block">Adds a <a href="JsonValue.html#NULL"><code>JsonValue.NULL</code></a> value to the array at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,jakarta.json.JsonObjectBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| <a href="JsonObjectBuilder.html" title="interface in jakarta.json">JsonObjectBuilder</a> builder)</pre> |
| <div class="block">Adds a <a href="JsonObject.html" title="interface in jakarta.json"><code>JsonObject</code></a> from an object builder to the array at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>builder</code> - the object builder</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified builder is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(int,jakarta.json.JsonArrayBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> add​(int index, |
| <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> builder)</pre> |
| <div class="block">Adds a <a href="JsonArray.html" title="interface in jakarta.json"><code>JsonArray</code></a> from an array builder to the array at the specified position. |
| Shifts the value currently at that position (if any) and any subsequent values |
| to the right (adds one to their indices). Index starts with 0.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>builder</code> - the array builder</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified builder is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index > array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,jakarta.json.JsonValue)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| <a href="JsonValue.html" title="interface in jakarta.json">JsonValue</a> value)</pre> |
| <div class="block">Replaces a value in the array with the specified value at the |
| specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the JSON value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> value)</pre> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonString.html" title="interface in jakarta.json"><code>JsonString</code></a> at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the string value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,java.math.BigDecimal)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a> value)</pre> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,java.math.BigInteger)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a> value)</pre> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified value is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| int value)</pre> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| long value)</pre> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| double value)</pre> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a> at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the number value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NumberFormatException</a></code> - if the value is Not-a-Number (NaN) or |
| infinity</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="JsonNumber.html" title="interface in jakarta.json"><code>JsonNumber</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| boolean value)</pre> |
| <div class="block">Replaces a value in the array with |
| a <a href="JsonValue.html#TRUE"><code>JsonValue.TRUE</code></a> or <a href="JsonValue.html#FALSE"><code>JsonValue.FALSE</code></a> value |
| at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>value</code> - the boolean value</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setNull(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setNull</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> setNull​(int index)</pre> |
| <div class="block">Replaces a value in the array with |
| a <a href="JsonValue.html#NULL"><code>JsonValue.NULL</code></a> value at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,jakarta.json.JsonObjectBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| <a href="JsonObjectBuilder.html" title="interface in jakarta.json">JsonObjectBuilder</a> builder)</pre> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonObject.html" title="interface in jakarta.json"><code>JsonObject</code></a> from an object builder at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>builder</code> - the object builder</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified builder is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="set(int,jakarta.json.JsonArrayBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> set​(int index, |
| <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> builder)</pre> |
| <div class="block">Replaces a value in the array with the specified value as a |
| <a href="JsonArray.html" title="interface in jakarta.json"><code>JsonArray</code></a> from an array builder at the specified position.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dd><code>builder</code> - the array builder</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the specified builder is null</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="remove(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>remove</h4> |
| <pre class="methodSignature">default <a href="JsonArrayBuilder.html" title="interface in jakarta.json">JsonArrayBuilder</a> remove​(int index)</pre> |
| <div class="block">Remove the value in the array at the specified position. |
| Shift any subsequent values to the left (subtracts one from their |
| indices.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the position in the array</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this array builder</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IndexOutOfBoundsException</a></code> - if the index is out of range |
| <code>(index < 0 || index >= array size)</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="build()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>build</h4> |
| <pre class="methodSignature"><a href="JsonArray.html" title="interface in jakarta.json">JsonArray</a> build()</pre> |
| <div class="block">Returns the current array.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current JSON array</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../index.html">Overview</a></li> |
| <li><a href="../../module-summary.html">Module</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/JsonArrayBuilder.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><br>JSON Processing API v2.0.0</div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Comments to: <a href="mailto:jsonp-dev@eclipse.org">jsonp-dev@eclipse.org</a>.<br> Copyright © 2019, 2020 Eclipse Foundation. All rights reserved.<br> Use is subject to <a href="../../../doc-files/speclicense.html" target="_top">license terms</a>.</small></p> |
| </footer> |
| </body> |
| </html> |