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:io.druid.indexing.overlord.ImmutableZkWorker.java

public ImmutableZkWorker(Worker worker, int currCapacityUsed, Set<String> availabilityGroups) {
    this.worker = worker;
    this.currCapacityUsed = currCapacityUsed;
    this.availabilityGroups = ImmutableSet.copyOf(availabilityGroups);
}

From source file:org.jclouds.fujitsu.fgcp.domain.NAT.java

/**
 * @return the rules
 */
public Set<Rule> getRules() {
    return rules == null ? ImmutableSet.<Rule>of() : ImmutableSet.copyOf(rules);
}

From source file:org.apache.hadoop.hive.ql.index.MockIndexResult.java

public MockIndexResult(Collection<HiveInputSplit> selectedSplits) {
    this.selectedSplits = ImmutableSet.copyOf(selectedSplits);
}

From source file:com.facebook.presto.connector.system.SystemConnectorFactory.java

@Inject
public SystemConnectorFactory(NodeManager nodeManager, Set<SystemTable> tables) {
    this.nodeManager = requireNonNull(nodeManager, "nodeManager is null");
    this.tables = ImmutableSet.copyOf(requireNonNull(tables, "tables is null"));
}

From source file:co.cask.cdap.explore.jdbc.MockHttpService.java

public MockHttpService(HttpHandler... httpHandlers) {
    this.httpHandlers = ImmutableSet.copyOf(httpHandlers);
}

From source file:at.ac.univie.isc.asio.security.AuthInfo.java

@JsonCreator
static AuthInfo create(@JsonProperty("name") @Nullable final String name,
        @JsonProperty("secret") @Nullable final String secret, @JsonProperty("login") final String login,
        @JsonProperty("authorities") final Iterable<String> authorities) {
    return new AutoValue_AuthInfo(name, secret, login, ImmutableSet.copyOf(authorities));
}

From source file:org.eclipse.buildship.core.workspace.internal.DefaultCompositeGradleBuild.java

public DefaultCompositeGradleBuild(Set<FixedRequestAttributes> builds) {
    this.builds = ImmutableSet.copyOf(builds);
}

From source file:org.opendaylight.protocol.bgp.parser.spi.pojo.MultiPathSupportImpl.java

private MultiPathSupportImpl(final Set<BgpTableType> supportedTables) {
    this.supportedTables = ImmutableSet.copyOf(supportedTables);
}

From source file:com.eucalyptus.auth.policy.ern.ServiceErnBuilder.java

protected ServiceErnBuilder(final Iterable<String> services) {
    this.services = ImmutableSet.copyOf(services);
}