本文整理了Java中com.google.gdata.client.Query.getCustomParameters
方法的一些代码示例,展示了Query.getCustomParameters
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getCustomParameters
方法的具体详情如下:
包路径:com.google.gdata.client.Query
类名称:Query
方法名:getCustomParameters
[英]Returns the list of custom parameters.
[中]返回自定义参数的列表。
代码示例来源:origin: com.google.gdata/gdata-core-1.0
/**
* Sets a string custom parameter, with null signifying to clear the
* parameter.
*
* @param name the name of the parameter
* @param value the value to set it to
*/
public final void setStringCustomParameter(String name, String value) {
List<CustomParameter> customParams = getCustomParameters();
for (CustomParameter existingValue : getCustomParameters(name)) {
customParams.remove(existingValue);
}
if (value != null) {
customParams.add(new CustomParameter(name, value));
}
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Sets a string custom parameter, with null signifying to clear the
* parameter.
*
* @param name the name of the parameter
* @param value the value to set it to
*/
public final void setStringCustomParameter(String name, String value) {
List<CustomParameter> customParams = getCustomParameters();
for (CustomParameter existingValue : getCustomParameters(name)) {
customParams.remove(existingValue);
}
if (value != null) {
customParams.add(new CustomParameter(name, value));
}
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Sets a string custom parameter, with null signifying to clear the
* parameter.
*
* @param name the name of the parameter
* @param value the value to set it to
*/
public final void setStringCustomParameter(String name, String value) {
List<CustomParameter> customParams = getCustomParameters();
for (CustomParameter existingValue : getCustomParameters(name)) {
customParams.remove(existingValue);
}
if (value != null) {
customParams.add(new CustomParameter(name, value));
}
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Gets an existing String custom parameter, with null signifying that the
* parameter is not specified.
*
* @param name the name of the parameter
* @return the value, or null if there is no parameter
*/
public final String getStringCustomParameter(String name) {
List<CustomParameter> params = getCustomParameters(name);
if (params.size() == 0) {
return null;
} else {
return params.get(0).getValue();
}
}
代码示例来源:origin: com.google.gdata/gdata-core-1.0
/**
* Gets an existing String custom parameter, with null signifying that the
* parameter is not specified.
*
* @param name the name of the parameter
* @return the value, or null if there is no parameter
*/
public final String getStringCustomParameter(String name) {
List<CustomParameter> params = getCustomParameters(name);
if (params.size() == 0) {
return null;
} else {
return params.get(0).getValue();
}
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Gets an existing String custom parameter, with null signifying that the
* parameter is not specified.
*
* @param name the name of the parameter
* @return the value, or null if there is no parameter
*/
public final String getStringCustomParameter(String name) {
List<CustomParameter> params = getCustomParameters(name);
if (params.size() == 0) {
return null;
} else {
return params.get(0).getValue();
}
}
内容来源于网络,如有侵权,请联系作者删除!