List of usage examples for com.google.common.collect ImmutableMultimap of
public static <K, V> ImmutableMultimap<K, V> of()
From source file:com.isotrol.impe3.freemarker.wrap.ModelUtils.java
static Multimap<String, String> buildURIQueryParameters(List<String> args, int index) { if (args == null || (args.size() - index) < 2) { return ImmutableMultimap.of(); }/*from w w w. j a v a 2s. c o m*/ final int n = args.size(); final Multimap<String, String> map = LinkedListMultimap.create(n / 2); for (int i = index; (args.size() - i) >= 2; i += 2) { String p = args.get(i); String v = args.get(i + 1); if (p != null && v != null) { map.put(p, v); } } return map; }
From source file:com.facebook.buck.cxx.toolchain.HeaderSymlinkTree.java
public HeaderSymlinkTree(BuildTarget target, ProjectFilesystem filesystem, Path root, ImmutableMap<Path, SourcePath> links, SourcePathRuleFinder ruleFinder) { super("cxx_header", target, filesystem, root, links, ImmutableMultimap.of(), ruleFinder); }
From source file:com.google.devtools.build.lib.query2.output.NullAspectResolver.java
@Override public ImmutableMultimap<Attribute, Label> computeAspectDependencies(Target target, DependencyFilter dependencyFilter) throws InterruptedException { return ImmutableMultimap.of(); }
From source file:io.crate.sql.tree.ObjectLiteral.java
public ObjectLiteral(@Nullable Multimap<String, Expression> values) { if (values == null) { this.values = ImmutableMultimap.of(); } else {// ww w .j a v a 2 s . c o m this.values = values; if (values.size() != values.keySet().size()) { throw new IllegalArgumentException("object contains duplicate keys: " + values); } } }
From source file:com.isotrol.impe3.api.PageURI.java
public PageURI(final PathSegments path, Multimap<String, String> parameters) { this.path = (path != null) ? path : PathSegments.of(); if (parameters != null) { this.parameters = ImmutableMultimap.copyOf(parameters); } else {// w w w. j av a 2s . co m this.parameters = ImmutableMultimap.of(); } }
From source file:org.opendaylight.yangtools.yang.model.repo.api.SchemaResolutionException.java
public SchemaResolutionException(@Nonnull final String message, final Throwable cause) { this(message, null, cause, Collections.emptySet(), ImmutableMultimap.of()); }
From source file:org.apache.shindig.gadgets.spec.Feature.java
private Feature(String name) { this.params = ImmutableMultimap.of(); this.required = true; this.name = name; }
From source file:com.github.tomakehurst.wiremock.http.HttpHeaders.java
public HttpHeaders() { headers = ImmutableMultimap.of(); }
From source file:org.zalando.logbook.QueryParameters.java
public QueryParameters() { this(ImmutableMultimap.of()); }
From source file:org.opendaylight.yangtools.yang.model.repo.api.SchemaResolutionException.java
public SchemaResolutionException(@Nonnull final String message, final SourceIdentifier failedSource, final Throwable cause) { this(message, failedSource, cause, Collections.emptySet(), ImmutableMultimap.of()); }