com.google.gwt.json.client.JSONObject.put0()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(132)

本文整理了Java中com.google.gwt.json.client.JSONObject.put0()方法的一些代码示例,展示了JSONObject.put0()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSONObject.put0()方法的具体详情如下:
包路径:com.google.gwt.json.client.JSONObject
类名称:JSONObject
方法名:put0

JSONObject.put0介绍

暂无

代码示例

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Assign the specified property to the specified value in this JSONObject. If
 * the property already has an associated value, it is overwritten.
 * 
 * @param key the property to assign
 * @param jsonValue the value to assign
 * @return the previous value of the property, or <code>null</code> if the
 *         property did not exist
 * @throws NullPointerException if key is <code>null</code>
 */
public JSONValue put(String key, JSONValue jsonValue) {
 if (key == null) {
  throw new NullPointerException();
 }
 JSONValue previous = get(key);
 put0(key, jsonValue);
 return previous;
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Assign the specified property to the specified value in this JSONObject. If
 * the property already has an associated value, it is overwritten.
 * 
 * @param key the property to assign
 * @param jsonValue the value to assign
 * @return the previous value of the property, or <code>null</code> if the
 *         property did not exist
 * @throws NullPointerException if key is <code>null</code>
 */
public JSONValue put(String key, JSONValue jsonValue) {
 if (key == null) {
  throw new NullPointerException();
 }
 JSONValue previous = get(key);
 put0(key, jsonValue);
 return previous;
}

相关文章