本文整理了Java中com.google.common.collect.Multimap.replaceValues()
方法的一些代码示例,展示了Multimap.replaceValues()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Multimap.replaceValues()
方法的具体详情如下:
包路径:com.google.common.collect.Multimap
类名称:Multimap
方法名:replaceValues
[英]Stores a collection of values with the same key, replacing any existing values for that key.
If values is empty, this is equivalent to #removeAll(Object).
[中]存储具有相同键的值的集合,替换该键的任何现有值。
如果值为空,则相当于#removeAll(对象)。
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param id
* list networks by id
*/
public ListNetworksOptions id(String id) {
this.queryParameters.replaceValues("id", ImmutableSet.of(id + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
public ListStoragePoolsOptions name(String name) {
this.queryParameters.replaceValues("name", ImmutableSet.of(name));
return this;
}
public ListStoragePoolsOptions path(String path) {
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param state the state of the host
*/
public ListHostsOptions state(String state) {
this.queryParameters.replaceValues("state", ImmutableSet.of(state));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param endPort
* the ending port of firewall rule
*/
public CreateFirewallRuleOptions endPort(int endPort) {
this.queryParameters.replaceValues("endport", ImmutableSet.of(endPort + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param icmpType
* type of the icmp message being sent
*/
public CreateFirewallRuleOptions icmpType(String icmpType) {
this.queryParameters.replaceValues("icmptype", ImmutableSet.of(icmpType));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param zoneId
* list network offerings available for network creation in specific zone
*/
public ListNetworkOfferingsOptions zoneId(String zoneId) {
this.queryParameters.replaceValues("zoneid", ImmutableSet.of(zoneId + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* the MD5 checksum value of this template
*/
public RegisterTemplateOptions checksum(String checksum) {
this.queryParameters.replaceValues("checksum", ImmutableSet.of(checksum));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* true if the template supports the password reset feature; default is false
*/
public RegisterTemplateOptions passwordEnabled(boolean passwordEnabled) {
this.queryParameters.replaceValues("passwordenabled", ImmutableSet.of(passwordEnabled + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* true if this template is a featured template, false otherwise
*/
public CreateTemplateOptions isFeatured(boolean isFeatured) {
this.queryParameters.replaceValues("isfeatured", ImmutableSet.of(isFeatured + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* true if the template supports the password reset feature; default is false
*/
public CreateTemplateOptions passwordEnabled(boolean passwordEnabled) {
this.queryParameters.replaceValues("passwordenabled", ImmutableSet.of(passwordEnabled + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* the ID of the snapshot the template is being created from. Either this parameter, or volumeId has to be passed in
*/
public CreateTemplateOptions snapshotId(String snapshotId) {
this.queryParameters.replaceValues("snapshotid", ImmutableSet.of(snapshotId + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param page
* the page number
*/
public ListUsersOptions page(long page) {
this.queryParameters.replaceValues("page", ImmutableSet.of(page + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param guestCIDRAddress
* the guest CIDR address for the Zone
*/
public CreateZoneOptions guestCIDRAddress(String guestCIDRAddress) {
this.queryParameters.replaceValues("guestcidraddress", ImmutableSet.of(guestCIDRAddress));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param vlan
* the VLAN for the Zone
*/
public CreateZoneOptions vlan(String vlan) {
this.queryParameters.replaceValues("vlan", ImmutableSet.of(vlan));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param account an optional account for the resource
*/
public CreateAccountOptions account(String account) {
this.queryParameters.replaceValues("account", ImmutableSet.of(account));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param name
* list by entry name
*/
public ListConfigurationEntriesOptions name(String name) {
this.queryParameters.replaceValues("name", ImmutableSet.of(name));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
public GenerateUsageRecordsOptions domainId(String domainId) {
this.queryParameters.replaceValues("domainid", ImmutableSet.of(domainId + ""));
return this;
}
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param parentDomainId
* the ID of the parent domain
*/
public CreateDomainOptions parentDomainId(String parentDomainId) {
this.queryParameters.replaceValues("parentdomainid", ImmutableSet.of(parentDomainId + ""));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param keyword List by keyword
*/
public ListVolumesOptions keyword(String keyword) {
this.queryParameters.replaceValues("keyword", ImmutableSet.of(keyword));
return this;
}
代码示例来源:origin: jclouds/legacy-jclouds
/**
* @param virtualMachineId list volumes by id virtual machine.
*/
public ListVolumesOptions virtualMachineId(String virtualMachineId) {
this.queryParameters.replaceValues("virtualmachineid", ImmutableSet.of(virtualMachineId + ""));
return this;
}
内容来源于网络,如有侵权,请联系作者删除!