List of usage examples for com.google.common.collect ImmutableMap copyOf
public static <K, V> ImmutableMap<K, V> copyOf(Iterable<? extends Entry<? extends K, ? extends V>> entries)
From source file:com.proofpoint.reporting.ReportedBeanRegistry.java
Map<ObjectName, ReportedBean> getReportedBeans() {
return ImmutableMap.copyOf(reportedBeans);
}
From source file:com.piotrglazar.webs.api.ExchangeRateResponse.java
public void setRates(final Map<String, BigDecimal> rates) { this.rates = ImmutableMap.copyOf(rates); }
From source file:com.rapid7.conqueso.client.metadata.CustomInstanceMetadataProvider.java
public CustomInstanceMetadataProvider(Map<String, String> metadata) { this.instanceMetadata = ImmutableMap.copyOf(metadata); }
From source file:com.bendb.thrifty.schema.Named.java
protected Named(String name, Map<NamespaceScope, String> namespaces) { this.name = Preconditions.checkNotNull(name, "name"); this.namespaces = ImmutableMap.copyOf(namespaces); }
From source file:com.facebook.buck.testutil.FakeFileHashCache.java
private FakeFileHashCache(Map<Path, HashCode> pathsToHashes) { this.pathsToHashes = ImmutableMap.copyOf(pathsToHashes); }
From source file:org.onos.yangtools.yang.data.impl.schema.nodes.AbstractImmutableNormalizedValueAttrNode.java
protected AbstractImmutableNormalizedValueAttrNode(final K nodeIdentifier, final V value, final Map<QName, String> attributes) { super(nodeIdentifier, value); this.attributes = ImmutableMap.copyOf(attributes); }
From source file:google.registry.dns.DnsWriterProxy.java
@Inject
DnsWriterProxy(Map<String, DnsWriter> dnsWriters) {
this.dnsWriters = ImmutableMap.copyOf(dnsWriters);
}
From source file:org.apache.bigtop.bigpetstore.datagenerator.framework.pdfs.DiscretePDF.java
public DiscretePDF(Map<T, Double> probabilities) { this.probabilities = ImmutableMap.copyOf(probabilities); }
From source file:org.graylog2.plugin.database.ValidationException.java
public ValidationException(Map<String, List<ValidationResult>> errors) { this.errors = ImmutableMap.copyOf(errors); }
From source file:co.cask.cdap.common.stream.DefaultStreamEventData.java
public DefaultStreamEventData(Map<String, String> headers, ByteBuffer body) { this.headers = ImmutableMap.copyOf(headers); this.body = body; }