本文整理了Java中com.google.gwt.json.client.JSONObject.put0()
方法的一些代码示例,展示了JSONObject.put0()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSONObject.put0()
方法的具体详情如下:
包路径:com.google.gwt.json.client.JSONObject
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!