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.facebook.presto.memory.MemoryPoolInfo.java
@JsonCreator public MemoryPoolInfo(@JsonProperty("maxBytes") long maxBytes, @JsonProperty("freeBytes") long freeBytes, @JsonProperty("queryMemoryReservations") Map<QueryId, Long> queryMemoryReservations) { this.maxBytes = maxBytes; this.freeBytes = freeBytes; this.queryMemoryReservations = ImmutableMap.copyOf(queryMemoryReservations); }
From source file:com.google.gxp.base.GxpAttrBundle.java
GxpAttrBundle(Map<String, T> attrs, Set<String> booleanAttrs) { this.attrs = ImmutableMap.copyOf(attrs); this.booleanAttrs = ImmutableSet.copyOf(booleanAttrs); }
From source file:com.facebook.presto.sql.planner.SymbolToInputRewriter.java
public SymbolToInputRewriter(Map<Symbol, Integer> symbolToChannelMapping) { requireNonNull(symbolToChannelMapping, "symbolToChannelMapping is null"); this.symbolToChannelMapping = ImmutableMap.copyOf(symbolToChannelMapping); }
From source file:com.facebook.presto.raptor.RaptorPartitioningHandle.java
@JsonCreator public RaptorPartitioningHandle(@JsonProperty("distributionId") long distributionId, @JsonProperty("bucketToNode") Map<Integer, String> bucketToNode) { this.distributionId = distributionId; this.bucketToNode = ImmutableMap.copyOf(requireNonNull(bucketToNode, "bucketToNode is null")); }
From source file:io.prestosql.sql.gen.CallSiteBinder.java
public Map<Long, MethodHandle> getBindings() { return ImmutableMap.copyOf(bindings); }
From source file:org.apereo.portal.events.tincan.om.LrsObject.java
public LrsObject(URI id, String objectType, Map<String, LocalizedString> definition) { this.id = id; this.objectType = objectType; this.definition = ImmutableMap.copyOf(definition); }
From source file:org.sonar.server.computation.qualityprofile.ActiveRule.java
public ActiveRule(RuleKey ruleKey, String severity, Map<String, String> params) { this.ruleKey = ruleKey; this.severity = severity; this.params = ImmutableMap.copyOf(params); }
From source file:com.lyndir.omicron.api.MutableResourceCost.java
@Override protected ImmutableMap<ResourceType, Integer> getQuantitiesByResourceType() { return ImmutableMap.copyOf(resourceQuantities); }
From source file:com.facebook.buck.android.FakeAndroidBuckConfig.java
public AndroidBuckConfig build() { return new AndroidBuckConfig(FakeBuckConfig.builder().setSections(ImmutableMap.of("android", ImmutableMap.copyOf(androidSection), "ndk", ImmutableMap.copyOf(ndkSection))).build(), Platform.detect());// www . j a v a 2s . c om }
From source file:com.facebook.buck.rules.FakeBuildEngine.java
public FakeBuildEngine(Map<BuildTarget, BuildResult> buildResults, Map<BuildTarget, RuleKey> ruleKeys) { this.buildResults = ImmutableMap.copyOf(buildResults); this.ruleKeys = ImmutableMap.copyOf(ruleKeys); }