Example usage for com.google.common.collect ImmutableSet of

List of usage examples for com.google.common.collect ImmutableSet of

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableSet of.

Prototype

public static <E> ImmutableSet<E> of(E element) 

Source Link

Usage

From source file:paperparcel.OptionsProcessingStep.java

@Override
public Set<? extends Class<? extends Annotation>> annotations() {
    return ImmutableSet.of(ProcessorConfig.class);
}

From source file:org.janusgraph.graphdb.types.system.EmptyRelationType.java

@Override
public Iterable<InternalRelationType> getRelationIndexes() {
    return ImmutableSet.of((InternalRelationType) this);
}

From source file:com.opengamma.financial.analytics.model.pnl.FXForwardYieldCurvePnLFunction.java

@Override
public Set<ValueSpecification> getResults(FunctionCompilationContext context, ComputationTarget target) {
    return ImmutableSet.of(new ValueSpecification(ValueRequirementNames.PNL_SERIES, target.toSpecification(),
            ValueProperties.all()));//from w  w w .j  av  a 2 s .  co  m
}

From source file:org.jclouds.cloudstack.options.ListTagsOptions.java

/**
 * @param customer//from www  . j  a v  a 2 s  .  c o m
 *    list by customer
 */
public ListTagsOptions customer(String customer) {
    this.queryParameters.replaceValues("customer", ImmutableSet.of(customer));
    return this;
}

From source file:org.jclouds.cloudstack.options.ListLoadBalancerRulesOptions.java

/**
 * @param id//from   www . j  a v  a2s . c  om
 *           Lists rule with the specified ID.
 */
public ListLoadBalancerRulesOptions id(String id) {
    this.queryParameters.replaceValues("id", ImmutableSet.of(id + ""));
    return this;
}

From source file:org.jclouds.cloudstack.options.CreateTagsOptions.java

/**
 * Customer - optional/* w  ww.  j av a2s.  c  om*/
 */
public CreateTagsOptions customer(String customer) {
    this.queryParameters.replaceValues("customer", ImmutableSet.of(customer));
    return this;
}

From source file:org.jclouds.cloudstack.options.CreateNetworkOptions.java

/**
 * @param isDefault//from ww w  .j a v a 2s  .c  o m
 *           true if network is default, false otherwise
 */
public CreateNetworkOptions isDefault(boolean isDefault) {
    this.queryParameters.replaceValues("isdefault", ImmutableSet.of(isDefault + ""));
    return this;
}

From source file:org.jclouds.cloudstack.options.ListConfigurationEntriesOptions.java

/**
 * @param category/*from  ww  w  . j  a  v  a2 s .c  om*/
 *    list by category name
 */
public ListConfigurationEntriesOptions category(String category) {
    this.queryParameters.replaceValues("category", ImmutableSet.of(category));
    return this;
}

From source file:org.jclouds.cloudstack.options.ListEgressFirewallRulesOptions.java

/**
 * @param id/*from www  .j a  v a2s.  c o  m*/
 *    firewall rule ID
 */
public ListEgressFirewallRulesOptions id(String id) {
    this.queryParameters.replaceValues("id", ImmutableSet.of(id + ""));
    return this;
}

From source file:org.jclouds.cloudstack.options.DeleteTagsOptions.java

/**
 * Resource ID(s) to un-tag//from  w  ww .  java 2  s .co  m
 */
public DeleteTagsOptions resourceIds(Set<String> resourceIds) {
    this.queryParameters.replaceValues("resourceids", ImmutableSet.of(Joiner.on(",").join(resourceIds)));
    return this;
}