com.google.gdata.client.Query.getCustomParameters()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(93)

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

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();
 }
}

相关文章