Changeset 13231 in josm for trunk/src/javax/json/JsonObjectBuilder.java
- Timestamp:
- 2017-12-23T02:40:43+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/javax/json/JsonObjectBuilder.java
r6756 r13231 2 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 3 * 4 * Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. 4 * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 5 * 6 6 * The contents of this file are subject to the terms of either the GNU … … 9 9 * may not use this file except in compliance with the License. You can 10 10 * obtain a copy of the License at 11 * https:// glassfish.dev.java.net/public/CDDL+GPL_1_1.html12 * or packager/legal/LICENSE.txt. See the License for the specific11 * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 * or LICENSE.txt. See the License for the specific 13 13 * language governing permissions and limitations under the License. 14 14 * 15 15 * When distributing the software, include this License Header Notice in each 16 * file and include the License file at packager/legal/LICENSE.txt.16 * file and include the License file at LICENSE.txt. 17 17 * 18 18 * GPL Classpath Exception: … … 65 65 * way to create multiple instances. 66 66 * 67 * <a id="JsonObjectBuilderExample1"/>68 67 * The example code below shows how to build a {@code JsonObject} model that 69 68 * represents the following JSON object: … … 207 206 * @param value value in the name/value pair 208 207 * @return this object builder 209 * @throws NumberFormatException if the value is Not-a-Number(NaN) or 208 * @throws NumberFormatException if the value is Not-a-Number (NaN) or 210 209 * infinity 211 210 * @throws NullPointerException if the specified name is null … … 269 268 270 269 /** 270 * Adds all name/value pairs in the JSON object associated with the specified 271 * object builder to the JSON object associated with this object builder. 272 * The newly added name/value pair will replace any existing name/value pair with 273 * the same name. 274 * 275 * @param builder the specified object builder 276 * @return this object builder 277 * @throws NullPointerException if the specified builder is null 278 * @since 1.1 279 */ 280 default JsonObjectBuilder addAll(JsonObjectBuilder builder) { 281 throw new UnsupportedOperationException(); 282 } 283 284 /** 285 * Remove the name/value pair from the JSON object associated with this 286 * object builder if it is present. 287 * 288 * @param name the name in the name/value pair to be removed 289 * @return this object builder 290 * @throws NullPointerException if the specified name is null 291 * @since 1.1 292 */ 293 default JsonObjectBuilder remove(String name) { 294 throw new UnsupportedOperationException(); 295 } 296 297 /** 271 298 * Returns the JSON object associated with this object builder. 272 299 * The iteration order for the {@code JsonObject} is based
Note:
See TracChangeset
for help on using the changeset viewer.