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

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

Introduction

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

Prototype

public static <K, V> ImmutableMap<K, V> copyOf(Iterable<? extends Entry<? extends K, ? extends V>> entries) 

Source Link

Usage

From source file:com.facebook.presto.resourceGroups.VariableMap.java

public VariableMap(Map<String, String> variables) {
    this.variables = ImmutableMap.copyOf(requireNonNull(variables, "variables is null"));
}

From source file:works.chatterbox.chatterbox.channels.worlds.WorldRecipients.java

@NotNull
public Map<String, Boolean> getIndividualWorlds() {
    return ImmutableMap.copyOf(this.individualWorlds);
}

From source file:com.palantir.docker.compose.matchers.DockerMachineEnvironmentMatcher.java

public static DockerMachineEnvironmentMatcher containsEnvironment(Map<String, String> environment) {
    return new DockerMachineEnvironmentMatcher(ImmutableMap.copyOf(environment));
}

From source file:com.facebook.swift.parser.model.ConstMap.java

public ConstMap(Map<ConstValue, ConstValue> value) {
    this.value = ImmutableMap.copyOf(checkNotNull(value, "value"));
}

From source file:org.opendaylight.controller.cluster.datastore.messages.ChangeShardMembersVotingStatus.java

public ChangeShardMembersVotingStatus(String shardName, Map<String, Boolean> meberVotingStatusMap) {
    this.shardName = Preconditions.checkNotNull(shardName);
    this.meberVotingStatusMap = ImmutableMap.copyOf(meberVotingStatusMap);
}

From source file:org.feature4j.FeatureBundle.java

public FeatureBundle(Map<String, Object> features) {
    this.features = ImmutableMap.copyOf(features);
}

From source file:org.onosproject.models.ciena.waveserverai.CienaWaveserverAiModelRegistrator.java

private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
    Map<YangModuleId, AppModuleInfo> appInfo = new HashMap<>();
    appInfo.put(new DefaultYangModuleId("ciena-waveserver-system", "2018-01-04"),
            new DefaultAppModuleInfo(CienaWaveserverSystem.class, null));
    appInfo.put(new DefaultYangModuleId("ciena-waveserver-port", "2017-07-31"),
            new DefaultAppModuleInfo(CienaWaveserverPort.class, null));

    return ImmutableMap.copyOf(appInfo);
    // TODO: Do some other registration tasks...
}

From source file:co.cask.cdap.data2.registry.internal.pair.OrderedPairs.java

public OrderedPairs(Map<String, KeyMaker<? extends Id>> keyMakers) {
    this.keyMakers = ImmutableMap.copyOf(keyMakers);
}

From source file:com.proofpoint.reporting.TaggedReportBinder.java

/**
 * See the EDSL description at {@link ReportBinder}.
 */
public void withTags(Map<String, String> tags) {
    mapping.setTags(ImmutableMap.copyOf(tags));
}

From source file:io.prestosql.decoder.DispatchingRowDecoderFactory.java

@Inject
public DispatchingRowDecoderFactory(Map<String, RowDecoderFactory> factories) {
    this.factories = ImmutableMap.copyOf(factories);
}