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.graylog2.jersey.PrefixAddingModelProcessor.java
public PrefixAddingModelProcessor(Map<String, String> packagePrefixes) { this.packagePrefixes = ImmutableMap.copyOf(packagePrefixes); }
From source file:rabbit.ui.internal.util.Categorizer.java
/** * Constructor./*from w w w . j a v a2s .c o m*/ * @param map The map of data specifies how to categorize elements. */ public Categorizer(Map<? extends Predicate<? super Object>, ? extends ICategory> map) { this.map = ImmutableMap.copyOf(map); }
From source file:org.voltcore.messaging.SiteFailureForwardMessage.java
public SiteFailureForwardMessage(SiteFailureMessage sfm) { m_reportingHSId = sfm.m_sourceHSId;/* w ww . j av a2s. com*/ m_survivors = ImmutableSet.copyOf(sfm.m_survivors); m_failed = ImmutableSet.copyOf(sfm.m_failed); m_safeTxnIds = ImmutableMap.copyOf(sfm.m_safeTxnIds); }
From source file:org.ubiquity.util.visitors.GenericsVisitor.java
public GenericsVisitor(ClassVisitor classVisitor, Map<String, Class<?>> generics) { super(ASM_LEVEL, classVisitor); this.generics = generics == null ? ImmutableMap.<String, Class<?>>of() : ImmutableMap.copyOf(generics); }
From source file:com.gradleware.tooling.toolingmodel.repository.internal.DefaultOmniEclipseBuildCommand.java
private DefaultOmniEclipseBuildCommand(String name, Map<String, String> arguments) { this.name = name; this.arguments = ImmutableMap.copyOf(arguments); }
From source file:de.devbliss.apitester.ApiRequest.java
public ApiRequest(URI uri, String httpMethod, Map<String, String> headers, Map<String, String> cookies) { this.uri = uri; this.httpMethod = httpMethod; this.headers = ImmutableMap.copyOf(headers); this.cookies = ImmutableMap.copyOf(cookies); }
From source file:org.apache.jackrabbit.oak.security.authentication.CustomCredentials.java
CustomCredentials(String loginID, String password, Map<String, String> attributes) { this.loginID = loginID; this.password = password; this.attributes = ImmutableMap.copyOf(attributes); }
From source file:com.facebook.buck.jvm.java.Jsr199TracingBridge.java
@Override public void begin(String pluginName, String eventName, Map<String, String> args) { eventSink.reportCompilerPluginStarted(buildTarget, pluginName, eventName, ImmutableMap.copyOf(args)); }
From source file:com.isotrol.impe3.api.Portal.java
private static <K, V> ImmutableMap<K, V> map(Map<K, V> map) { if (map == null || map.isEmpty()) { return ImmutableMap.of(); } else {/*from ww w .j a va2 s . c o m*/ return ImmutableMap.copyOf(map); } }
From source file:com.tkmtwo.sarapi.mapping.ValuePuttingEntryHandler.java
public void setStaticValues(Map<String, Value> m) { staticValues = ImmutableMap.copyOf(m); }