List of usage examples for com.google.common.collect ImmutableMap of
public static <K, V> ImmutableMap<K, V> of()
From source file:com.tozny.mobiledemo.UserDAO.java
public UserDAO() { userMap = ImmutableMap.of(); }
From source file:org.openqa.selenium.devtools.Log.java
public static Command<Void> clear() { return new Command<>("Log.clear", ImmutableMap.of()); }
From source file:com.google.javascript.jscomp.deps.SimpleDependencyInfo.java
public static Builder builder(String srcPathRelativeToClosure, String pathOfDefiningFile) { return new AutoValue_SimpleDependencyInfo.Builder().setName(pathOfDefiningFile) .setPathRelativeToClosureBase(srcPathRelativeToClosure).setProvides(ImmutableList.of()) .setRequires(ImmutableList.of()).setTypeRequires(ImmutableList.of()) .setLoadFlags(ImmutableMap.of()); }
From source file:com.icosilune.fnexample.simple.TimestampFn.java
@Override public Map<String, FnType> getInputTypes() { return ImmutableMap.of(); }
From source file:com.spotify.heroic.metadata.elasticsearch.ElasticsearchMetadataUtils.java
public static Map<String, Object> loadJsonResource(String path) { final String fullPath = ElasticsearchMetadataModule.class.getPackage().getName() + "/" + path; try (final InputStream input = ElasticsearchMetadataModule.class.getClassLoader() .getResourceAsStream(fullPath)) { if (input == null) { return ImmutableMap.of(); }// w ww .ja v a 2 s . c o m return JsonXContent.jsonXContent.createParser(NamedXContentRegistry.EMPTY, input).map(); } catch (final IOException e) { throw new RuntimeException("Failed to load resource: " + path, e); } }
From source file:com.b2international.snowowl.snomed.api.rest.SnomedBranchingRestRequests.java
public static ValidatableResponse createBranch(IBranchPath branchPath) { return createBranch(branchPath, ImmutableMap.of()); }
From source file:org.openqa.selenium.devtools.Target.java
public static Command<Set<TargetInfo>> getTargets() { return new Command<>("Target.getTargets", ImmutableMap.of(), ConverterFunctions.map("targetInfos", SET_OF_TARGETINFO)); }
From source file:com.spectralogic.ds3contractcomparator.print.utils.PrinterUtils.java
/** * Converts an {@link ImmutableList} of {@link Ds3Param} into an {@link ImmutableMap} of * parameter names and {@link Ds3Param}//from ww w. j a v a2 s .c o m */ public static ImmutableMap<String, Ds3Param> toParamMap(final ImmutableList<Ds3Param> params) { if (isEmpty(params)) { return ImmutableMap.of(); } final ImmutableMap.Builder<String, Ds3Param> builder = ImmutableMap.builder(); params.forEach(param -> builder.put(param.getName(), param)); return builder.build(); }
From source file:com.spotify.heroic.grammar.Value.java
static AggregationValue aggregation(String name) { return aggregation(name, list(), ImmutableMap.of()); }
From source file:org.openqa.selenium.devtools.Log.java
public static Command<Void> enable() { return new Command<>("Log.enable", ImmutableMap.of()); }