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.vsct.dt.strowgr.admin.core.event.out.ServerRegisteredEvent.java

public ServerRegisteredEvent(String correlationId, EntryPointKey key, String backend,
        Set<IncomingEntryPointBackendServer> servers) {
    super(correlationId, key);
    this.backend = backend;
    this.servers = ImmutableSet.copyOf(servers);
}

From source file:io.atomix.protocols.gossip.map.UpdateRequest.java

/**
 * Creates a new update request./*www .j a  va 2 s.  co m*/
 *
 * @param sender the sender's node ID
 * @param keys keys requested
 */
public UpdateRequest(MemberId sender, Set<K> keys) {
    this.sender = checkNotNull(sender);
    this.keys = ImmutableSet.copyOf(keys);
}

From source file:com.icosilune.fn.nodes.NodeGraph.java

public ImmutableSet<AbstractNode> getNodes() {
    return ImmutableSet.copyOf(allNodes);
}

From source file:org.onosproject.store.primitives.impl.UpdateRequest.java

/**
 * Creates a new update request./*from   ww  w. j a  va 2 s.  c  om*/
 *
 * @param sender the sender's node ID
 * @param keys keys requested
 */
public UpdateRequest(NodeId sender, Set<K> keys) {
    this.sender = checkNotNull(sender);
    this.keys = ImmutableSet.copyOf(keys);
}

From source file:org.onosproject.net.flow.oldbatch.FlowRuleBatchRequest.java

public FlowRuleBatchRequest(long batchId, Set<FlowRuleBatchEntry> ops) {
    this.batchId = batchId;
    this.ops = ImmutableSet.copyOf(ops);
}

From source file:com.google.inject.CreationException.java

/** Creates a CreationException containing {@code messages}. */
public CreationException(Collection<Message> messages) {
    this.messages = ImmutableSet.copyOf(messages);
    checkArgument(!this.messages.isEmpty());
    initCause(Errors.getOnlyCause(this.messages));
}

From source file:org.gradle.model.internal.manage.schema.extract.DefaultConstructableTypesRegistry.java

@Override
public Iterable<ModelType<?>> supportedTypes() {
    return ImmutableSet.copyOf(mappings.keySet());
}

From source file:edu.uiuc.cs.msl.core.common.service.ServiceManagerImpl.java

@Inject
ServiceManagerImpl(@NotNull Set<Service> aServices) {
    theServices = ImmutableSet.copyOf(aServices);
}

From source file:org.rf.ide.core.executor.EnvironmentSearchPaths.java

public Collection<String> getPythonPaths() {
    return ImmutableSet.copyOf(pythonPaths);
}

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

private FilterAuthorities(final Iterable<GrantedAuthority> excluded) {
    this.excluded = ImmutableSet.copyOf(excluded);
}