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

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

Introduction

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

Prototype

public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) 

Source Link

Usage

From source file:software.reinvent.dependency.parser.model.ArtifactDependency.java

public ImmutableSet<String> getVersions() {
    return ImmutableSet.copyOf(versions);
}

From source file:com.textocat.textokit.morph.opencorpora.resource.LemmaByGrammemFilter.java

public LemmaByGrammemFilter(String... grammemsToReject) {
    this.grammemsToReject = ImmutableSet.copyOf(grammemsToReject);
}

From source file:com.torodb.torod.core.language.update.SingleFieldUpdateAction.java

SingleFieldUpdateAction(Collection<AttributeReference> modifiedField) {
    this.modifiedField = ImmutableSet.copyOf(modifiedField);
}

From source file:io.prestosql.connector.system.StaticSystemTablesProvider.java

public StaticSystemTablesProvider(Set<SystemTable> systemTables) {
    this.systemTables = ImmutableSet.copyOf(systemTables);
    this.systemTablesMap = systemTables.stream()
            .collect(toImmutableMap(table -> table.getTableMetadata().getTable(), identity()));
}

From source file:com.nirmata.workflow.details.internalmodels.RunnableTaskDag.java

public RunnableTaskDag(TaskId taskId, Collection<TaskId> dependencies) {
    this.taskId = Preconditions.checkNotNull(taskId, "taskId cannot be null");
    dependencies = Preconditions.checkNotNull(dependencies, "dependencies cannot be null");
    this.dependencies = ImmutableSet.copyOf(dependencies);
}

From source file:org.intellij.erlang.rebar.importWizard.ImportedOtpApp.java

public ImportedOtpApp(@NotNull String name, @NotNull VirtualFile root, @NotNull Set<String> deps) {
    myName = name;
    myRoot = root;
    myDeps = ImmutableSet.copyOf(deps);
}

From source file:com.github.jcustenborder.kafka.connect.utils.config.validators.ValidCharset.java

public ValidCharset(String... charsets) {
    this(ImmutableSet.copyOf(charsets));
}

From source file:org.onosproject.vpls.config.VplsNetworkConfig.java

/**
 * Creates a new VPLS configuration.//from  w ww  . j  a  va 2  s  .  co m
 *
 * @param name the VPLS name
 * @param ifaces the interfaces associated with the VPLS
 */
public VplsNetworkConfig(String name, Set<String> ifaces) {
    this.name = checkNotNull(name);
    this.ifaces = checkNotNull(ImmutableSet.copyOf(ifaces));
}

From source file:com.wrmsr.wava.java.lang.compilationUnit.JCompilationUnit.java

public JCompilationUnit(Optional<JPackageSpec> packageSpec, Set<JImportSpec> importSpecs, JDeclaration body) {
    this.packageSpec = requireNonNull(packageSpec);
    this.importSpecs = ImmutableSet.copyOf(importSpecs);
    this.body = requireNonNull(body);
}

From source file:co.cask.cdap.etl.planner.PipelinePlan.java

public PipelinePlan(Map<String, PipelinePhase> phases, Collection<Connection> phaseConnections) {
    this.phases = ImmutableMap.copyOf(phases);
    this.phaseConnections = ImmutableSet.copyOf(phaseConnections);
}