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:org.chaston.oakfunds.storage.ReportRow.java
public ReportRow(Map<String, Object> dimensions) { this.dimensions = ImmutableMap.copyOf(dimensions); }
From source file:com.google.errorprone.ErrorProneFlags.java
public static ErrorProneFlags fromMap(Map<String, String> flagsMap) { return new ErrorProneFlags(ImmutableMap.copyOf(flagsMap)); }
From source file:co.cask.tigon.internal.app.runtime.BasicArguments.java
public BasicArguments(Map<String, String> options) { this.options = ImmutableMap.copyOf(options); }
From source file:org.gradle.plugins.ide.internal.tooling.eclipse.DefaultEclipseBuildCommand.java
public DefaultEclipseBuildCommand(String name, Map<String, String> arguments) { this.name = name; this.arguments = ImmutableMap.copyOf(arguments); }
From source file:com.google.api.codegen.util.StaticResourcesHandler.java
public StaticResourcesHandler(Map<String, String> resourceFilesMap) { this.resourceFilesMap = ImmutableMap.copyOf(resourceFilesMap); }
From source file:org.terasology.rendering.assets.font.FontData.java
public FontData(int lineHeight, Map<Integer, FontCharacter> characters) { this.lineHeight = lineHeight; this.characters = ImmutableMap.copyOf(characters); }
From source file:org.chaston.oakfunds.storage.ReportEntry.java
ReportEntry(Instant instant, Map<String, BigDecimal> measures) { this.instant = instant; this.attributes = ImmutableMap.copyOf(measures); }
From source file:org.apache.james.utils.GuiceMailboxManagerResolver.java
private static ImmutableMap<String, MailboxManager> indexManagersByName( Set<MailboxManagerDefinition> managers) { return ImmutableMap.copyOf(managers.stream().collect( Collectors.toMap(MailboxManagerDefinition::getName, MailboxManagerDefinition::getManager))); }
From source file:com.proofpoint.reporting.HealthBeanRegistry.java
Map<String, HealthBeanAttribute> getHealthAttributes() {
return ImmutableMap.copyOf(healthAttributes);
}
From source file:com.proofpoint.reporting.TaggedReportCollectionBinder.java
/** * See the EDSL description at {@link ReportBinder}. */ public void withTags(Map<String, String> tags) { provider.setTags(ImmutableMap.copyOf(tags)); }