List of usage examples for com.google.common.collect ImmutableSet of
public static <E> ImmutableSet<E> of(E element)
From source file:com.google.inject.ProvisionException.java
public ProvisionException(String message, Throwable cause) { super(cause); this.messages = ImmutableSet.of(new Message(message, cause)); }
From source file:org.jclouds.cloudstack.options.ListSnapshotsOptions.java
/** * @param id lists snapshot by snapshot ID *//*from w w w.j a v a 2 s .c o m*/ public ListSnapshotsOptions id(String id) { this.queryParameters.replaceValues("id", ImmutableSet.of(id + "")); return this; }
From source file:org.jclouds.cloudstack.options.CreatePodOptions.java
public CreatePodOptions allocationState(AllocationState allocationState) { this.queryParameters.replaceValues("allocationstate", ImmutableSet.of(allocationState.toString())); return this; }
From source file:com.facebook.presto.sql.tree.SimpleGroupBy.java
@Override public Set<Set<Expression>> enumerateGroupingSets() { return ImmutableSet.of(ImmutableSet.copyOf(columns)); }
From source file:com.continuuity.loom.layout.change.AddServicesChange.java
public AddServicesChange(Multiset<NodeLayout> countsPerNodeLayout, String service) { this(countsPerNodeLayout, ImmutableSet.of(service)); }
From source file:org.jclouds.cloudstack.options.ListAlertsOptions.java
public ListAlertsOptions type(String type) { this.queryParameters.replaceValues("type", ImmutableSet.of(type)); return this; }
From source file:org.jclouds.cloudstack.options.AccountInDomainOptions.java
/** * //from w w w. j a v a2s. c o m * @param account * an optional account for the resource * @param domain * domain id */ public AccountInDomainOptions accountInDomain(String account, String domain) { this.queryParameters.replaceValues("account", ImmutableSet.of(account)); this.queryParameters.replaceValues("domainid", ImmutableSet.of(domain + "")); return this; }
From source file:org.jclouds.cloudstack.options.ListResourceLimitsOptions.java
/** * Lists resource limits by account. Must be used with the domainId parameter. * * @param account - the account for which the resource limits are retrieved for. * @return ListResourceLimitsOptions/*from ww w . ja v a2 s . c o m*/ */ public ListResourceLimitsOptions account(String account, String domainId) { this.queryParameters.replaceValues("account", ImmutableSet.of(account)); this.queryParameters.replaceValues("domainid", ImmutableSet.of(String.valueOf(domainId))); return this; }
From source file:com.facebook.hive.metastore.client.GuiceHiveMetastoreFactory.java
@Override public HiveMetastore getDefaultClient() { return new RetryingHiveMetastore(ImmutableSet.of(hiveMetastoreClientConfig.getHostAndPort()), hiveMetastoreClientConfig, thriftClient); }
From source file:org.jclouds.cloudstack.options.ListUsersOptions.java
/** * @param id/*from w ww . ja v a 2 s . co m*/ * list account by account ID */ public ListUsersOptions id(String id) { this.queryParameters.replaceValues("id", ImmutableSet.of(id + "")); return this; }