List of usage examples for com.google.common.collect ImmutableMap of
public static <K, V> ImmutableMap<K, V> of()
From source file:com.teradata.benchto.service.utils.CollectionUtils.java
public static <K, V> Map<K, V> failSafeEmpty(Map<K, V> map) { if (map == null) { return ImmutableMap.of(); }//from w w w . j a v a2 s .co m return map; }
From source file:com.opengamma.strata.engine.marketdata.function.ObservableMarketDataFunction.java
/** * Returns a builder that doesn't build any market data. * * @return a builder that doesn't build any market data */// w ww . ja v a 2s . c o m public static ObservableMarketDataFunction none() { return requirements -> ImmutableMap.of(); }
From source file:ratpack.path.internal.DefaultPathTokens.java
public static PathTokens empty() { return new DefaultPathTokens(ImmutableMap.of()); }
From source file:com.facebook.buck.parser.api.BuildFileManifestFactory.java
public static BuildFileManifest create(ImmutableMap<String, Map<String, Object>> targets) { return BuildFileManifest.of(targets, ImmutableSortedSet.of(), ImmutableMap.of(), Optional.empty(), ImmutableList.of());/*from w w w . ja v a2 s . c o m*/ }
From source file:io.prestosql.plugin.atop.LocalAtopQueryRunner.java
public static LocalQueryRunner createQueryRunner() { return createQueryRunner(ImmutableMap.of(), TestingAtopFactory.class); }
From source file:io.prestosql.plugin.blackhole.BlackHoleQueryRunner.java
public static DistributedQueryRunner createQueryRunner() throws Exception { return createQueryRunner(ImmutableMap.of()); }
From source file:de.metas.ui.web.cache.ETag.java
public static final ETag of(final int version) { return new ETag(version, ImmutableMap.of()); }
From source file:com.facebook.presto.atop.LocalAtopQueryRunner.java
public static LocalQueryRunner createQueryRunner() throws Exception { return createQueryRunner(ImmutableMap.of(), TestingAtopFactory.class); }
From source file:com.google.gerrit.util.cli.OptionHandlers.java
public static OptionHandlers empty() { ImmutableMap<Class<?>, Provider<OptionHandlerFactory<?>>> m = ImmutableMap.of(); return new OptionHandlers(m); }
From source file:io.appium.java_client.ios.IOSMobileCommandHelper.java
/** * This method forms a {@link Map} of parameters for the device shaking. * * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments. *//* w ww .j a v a2 s. c om*/ public static Map.Entry<String, Map<String, ?>> shakeCommand() { return new AbstractMap.SimpleEntry<>(SHAKE, ImmutableMap.of()); }