List of usage examples for com.google.common.collect ImmutableSet of
public static <E> ImmutableSet<E> of(E element)
From source file:org.jclouds.cloudstack.options.ExtractISOOptions.java
/** * @param url the url to which the ISO would be extracted *//*from w ww. j a v a 2s. co m*/ public ExtractISOOptions url(String url) { this.queryParameters.replaceValues("url", ImmutableSet.of(url + "")); return this; }
From source file:org.jclouds.cloudstack.options.ListOSTypesOptions.java
/** * @param id/*from w ww .j ava2 s.c o m*/ * list by Os type Id */ public ListOSTypesOptions id(String id) { this.queryParameters.replaceValues("id", ImmutableSet.of(id + "")); return this; }
From source file:org.jclouds.cloudstack.options.CreateUserOptions.java
/** * @param domainId The domain for the resource *///from w w w . ja v a 2 s. com public CreateUserOptions domainId(String domainId) { this.queryParameters.replaceValues("domainid", ImmutableSet.of(domainId + "")); return this; }
From source file:org.jclouds.cloudstack.options.DeleteTemplateOptions.java
/** * @param zoneId selects the template's zoneId. *///from w w w .j a v a 2 s .c o m public DeleteTemplateOptions zoneId(String zoneId) { this.queryParameters.replaceValues("zoneid", ImmutableSet.of(zoneId + "")); return this; }
From source file:google.registry.tools.server.ListRegistrarsAction.java
@Override public ImmutableSet<String> getPrimaryKeyFields() { return ImmutableSet.of("clientIdentifier"); }
From source file:co.cask.cdap.datastreams.DataStreamsApp.java
@Override public void configure() { DataStreamsConfig config = getConfig(); setDescription("Data Streams Application"); PipelineSpecGenerator<DataStreamsConfig, DataStreamsPipelineSpec> specGenerator = new DataStreamsPipelineSpecGenerator( getConfigurer(), ImmutableSet.of(StreamingSource.PLUGIN_TYPE), ImmutableSet.of(BatchSink.PLUGIN_TYPE)); DataStreamsPipelineSpec spec = specGenerator.generateSpec(config); addSpark(new DataStreamsSparkLauncher(spec, config)); if (!config.checkpointsDisabled()) { createDataset(CHECKPOINT_FILESET, FileSet.class); }//from w ww .java 2 s . c om }
From source file:org.jclouds.cloudstack.options.ListZonesOptions.java
/** * @param id/*from ww w .j a va 2s . c o m*/ * the ID of the zone */ public ListZonesOptions id(String id) { this.queryParameters.replaceValues("id", ImmutableSet.of(id + "")); return this; }
From source file:com.google.gerrit.server.notedb.ConfigNotesMigration.java
private static void checkConfig(Config cfg) { Set<String> keys = ImmutableSet.of(CHANGES.key()); Set<String> allowed = ImmutableSet.of(DISABLE_REVIEW_DB.toLowerCase(), PRIMARY_STORAGE.toLowerCase(), READ.toLowerCase(), WRITE.toLowerCase(), SEQUENCE.toLowerCase()); for (String t : cfg.getSubsections(NOTE_DB)) { checkArgument(keys.contains(t.toLowerCase()), "invalid NoteDb table: %s", t); for (String key : cfg.getNames(NOTE_DB, t)) { checkArgument(allowed.contains(key.toLowerCase()), "invalid NoteDb key: %s.%s", t, key); }//from w w w . j av a2 s .co m } }
From source file:org.jclouds.cloudstack.options.ListEventsOptions.java
public ListEventsOptions account(String account) { this.queryParameters.replaceValues("account", ImmutableSet.of(account)); return this; }
From source file:com.linecorp.armeria.client.thrift.THttpClientFactoryProvider.java
@Override public Set<Class<? extends ClientFactory>> dependencies() { return ImmutableSet.of(HttpClientFactory.class); }