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.opengamma.provider.historicaltimeseries.impl.DelegatingHistoricalTimeSeriesProvider.java

/**
 * Creates an instance./*from w ww. ja  v a 2s . c  o m*/
 * 
 * @param providers  the providers to use, keyed by data source, not null
 */
public DelegatingHistoricalTimeSeriesProvider(Map<String, HistoricalTimeSeriesProvider> providers) {
    _providers = ImmutableMap.copyOf(providers);
}

From source file:com.ibm.og.http.HttpResponse.java

private HttpResponse(final Builder builder) {
    this.statusCode = builder.statusCode;
    checkArgument(HttpUtil.VALID_STATUS_CODES.contains(this.statusCode),
            "statusCode must be a valid status code [%s]", this.statusCode);
    this.responseHeaders = ImmutableMap.copyOf(builder.responseHeaders);
    this.body = checkNotNull(builder.body);
    this.context = ImmutableMap.copyOf(builder.context);
}

From source file:ru.codeinside.gses.activiti.forms.definitions.NTree.java

public NTree(PropertyNode[] nodes, Map<String, PropertyNode> index, DurationPreference durationPreference,
        String formKey, boolean signatureRequired) {
    this.nodes = nodes;
    this.signatureRequired = signatureRequired;
    this.index = ImmutableMap.copyOf(index);
    this.durationPreference = durationPreference;
    this.formKey = formKey;
}

From source file:org.apache.bigtop.bigpetstore.datagenerator.framework.pdfs.MultinomialPDF.java

public MultinomialPDF(Map<T, Double> probabilities) {
    this.probabilities = ImmutableMap.copyOf(probabilities);
}

From source file:uk.co.caprica.brue.core.domain.bridge.result.Result.java

public Result(Map<String, ?> result) {
    this.result = ImmutableMap.copyOf(result);
}

From source file:org.onos.yangtools.yang.parser.stmt.reactor.CrossSourceStatementReactor.java

CrossSourceStatementReactor(Map<ModelProcessingPhase, StatementSupportBundle> supportedTerminology) {
    this.supportedTerminology = ImmutableMap.copyOf(supportedTerminology);
}

From source file:com.netflix.spinnaker.clouddriver.core.limits.ImplementationLimits.java

public ImplementationLimits(ServiceLimits defaults, Map<String, ServiceLimits> accountOverrides) {
    this.defaults = defaults == null ? new ServiceLimits(null) : defaults;
    this.accountOverrides = accountOverrides == null ? Collections.emptyMap()
            : ImmutableMap.copyOf(accountOverrides);
}

From source file:de.uniulm.omi.cloudiator.visor.monitoring.SensorConfigurationImpl.java

SensorConfigurationImpl(Map<String, String> configuration) {
    this.configuration = ImmutableMap.copyOf(configuration);
}

From source file:com.blacklocus.misc.NoNullsMap.java

public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) {
    NoNullsMap<K, V> map = new NoNullsMap<K, V>(3);
    map.put(k1, v1);/*from  w  w w. j a  v a2s .c  o m*/
    map.put(k2, v2);
    map.put(k3, v3);
    map.put(k4, v4);
    map.put(k5, v5);
    return ImmutableMap.copyOf(map);
}

From source file:com.greensopinion.finance.services.web.dispatch.MatchResult.java

MatchResult(boolean matches, Map<String, String> variables) {
    this.matches = matches;
    this.variables = ImmutableMap.copyOf(variables);
}