Changeset 13231 in josm for trunk/src/javax/json/JsonBuilderFactory.java
- Timestamp:
- 2017-12-23T02:40:43+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/javax/json/JsonBuilderFactory.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: … … 41 41 package javax.json; 42 42 43 import java.util.Collection; 43 44 import java.util.Map; 44 45 … … 71 72 * <p> All the methods in this class are safe for use by multiple concurrent 72 73 * threads. 73 *74 * @author Jitendra Kotamraju75 74 */ 76 75 public interface JsonBuilderFactory { … … 85 84 86 85 /** 86 * Creates a {@code JsonObjectBuilder} instance, initialized with an object. 87 * 88 * @param object the initial object in the builder 89 * @return a JSON object builder 90 * @throws NullPointerException if specified object is {@code null} 91 * 92 * @since 1.1 93 */ 94 default JsonObjectBuilder createObjectBuilder(JsonObject object) { 95 throw new UnsupportedOperationException(); 96 } 97 98 /** 99 * Creates a {@code JsonObjectBuilder} instance, initialized with the specified object. 100 * 101 * @param object the initial object in the builder 102 * @return a JSON object builder 103 * @throws NullPointerException if specified object is {@code null} 104 * 105 * @since 1.1 106 */ 107 default JsonObjectBuilder createObjectBuilder(Map<String, Object> object) { 108 throw new UnsupportedOperationException(); 109 } 110 111 /** 87 112 * Creates a {@code JsonArrayBuilder} instance that is used to build 88 113 * {@link JsonArray} … … 91 116 */ 92 117 JsonArrayBuilder createArrayBuilder(); 118 119 /** 120 * Creates a {@code JsonArrayBuilder} instance, initialized with an array. 121 * 122 * @param array the initial array in the builder 123 * @return a JSON array builder 124 * @throws NullPointerException if specified array is {@code null} 125 * 126 * @since 1.1 127 */ 128 default JsonArrayBuilder createArrayBuilder(JsonArray array) { 129 throw new UnsupportedOperationException(); 130 } 131 132 /** 133 * Creates a {@code JsonArrayBuilder} instance, 134 * initialized with the content of specified collection. 135 * 136 * @param collection the initial data for the builder 137 * @return a JSON array builder 138 * @throws NullPointerException if specified collection is {@code null} 139 * 140 * @since 1.1 141 */ 142 default JsonArrayBuilder createArrayBuilder(Collection<?> collection) { 143 throw new UnsupportedOperationException(); 144 } 93 145 94 146 /**
Note:
See TracChangeset
for help on using the changeset viewer.