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:com.facebook.presto.execution.scheduler.ScheduleResult.java

public ScheduleResult(boolean finished, Iterable<? extends RemoteTask> newTasks, CompletableFuture<?> blocked) {
    this.finished = finished;
    this.newTasks = ImmutableSet.copyOf(requireNonNull(newTasks, "newTasks is null"));
    this.blocked = requireNonNull(blocked, "blocked is null");
}

From source file:com.b2international.commons.TypeSafeAdapterFactory.java

public TypeSafeAdapterFactory(final Class<?>... supportedClasses) {
    this.supportedClasses = ImmutableSet.copyOf(supportedClasses);
}

From source file:com.github.richardballard.arbeeutils.id.AllBasedByIdSpecifier.java

public AllBasedByIdSpecifier(final @NotNull Iterable<? extends T> exclusions) {

    this.exclusions = ImmutableSet.copyOf(exclusions);
}

From source file:com.github.richardballard.arbeeutils.id.NoneBasedByIdSpecifier.java

public NoneBasedByIdSpecifier(final @NotNull Iterable<? extends T> inclusions) {

    this.inclusions = ImmutableSet.copyOf(inclusions);
}

From source file:org.gradle.api.internal.artifacts.publish.AbstractPublishArtifact.java

public AbstractPublishArtifact(@Nullable TaskResolver resolver, Object... tasks) {
    taskDependency = new DefaultTaskDependency(resolver, ImmutableSet.copyOf(tasks));
}

From source file:com.facebook.buck.rules.TargetGraphAndTargets.java

private TargetGraphAndTargets(TargetGraph targetGraph, Iterable<TargetNode<?, ?>> projectRoots) {
    this.targetGraph = targetGraph;
    this.projectRoots = ImmutableSet.copyOf(projectRoots);
}

From source file:org.eigenbase.rex.RexFieldCollation.java

public RexFieldCollation(RexNode left, Set<SqlKind> right) {
    super(left, ImmutableSet.copyOf(right));
}

From source file:com.torodb.mongodb.language.update.SingleFieldUpdateAction.java

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

From source file:org.chromium.closure.compiler.ChromeCodingConvention.java

public ChromeCodingConvention(CodingConvention wrapped) {
    super(wrapped);

    Set<String> props = Sets.newHashSet("instance_", "getInstance");
    props.addAll(wrapped.getIndirectlyDeclaredProperties());
    indirectlyDeclaredProperties = ImmutableSet.copyOf(props);
}

From source file:dagger.internal.codegen.SubcomponentBuilderBindingEdgeImpl.java

SubcomponentBuilderBindingEdgeImpl(Iterable<TypeElement> declaringModules) {
    this.declaringModules = ImmutableSet.copyOf(declaringModules);
}