Example usage for com.google.common.collect ImmutableListMultimap copyOf

List of usage examples for com.google.common.collect ImmutableListMultimap copyOf

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableListMultimap copyOf.

Prototype

@Beta
public static <K, V> ImmutableListMultimap<K, V> copyOf(
        Iterable<? extends Entry<? extends K, ? extends V>> entries) 

Source Link

Document

Returns an immutable multimap containing the specified entries.

Usage

From source file:com.facebook.presto.matching.MatchingEngine.java

private MatchingEngine(ListMultimap<Class, T> matchablesByClass) {
    this.matchablesByClass = ImmutableListMultimap.copyOf(matchablesByClass);
}

From source file:com.facebook.presto.sql.planner.iterative.RuleIndex.java

private RuleIndex(ListMultimap<Class<?>, Rule<?>> rulesByRootType) {
    this.rulesByRootType = ImmutableListMultimap.copyOf(rulesByRootType);
}

From source file:com.facebook.presto.sql.planner.iterative.RuleStore.java

private RuleStore(ListMultimap<Class<? extends PlanNode>, Rule> rulesByClass) {
    this.rulesByClass = ImmutableListMultimap.copyOf(rulesByClass);
}

From source file:com.imaginarycode.minecraft.bungeejson.impl.httpserver.HttpServerApiRequest.java

public HttpServerApiRequest(InetAddress ia, Multimap<String, String> params, String body) {
    this.remoteIp = ia;
    this.data = body;
    this.params = ImmutableListMultimap.copyOf(params);
}

From source file:io.airlift.http.client.UnexpectedResponseException.java

public UnexpectedResponseException(Request request, Response response) {
    this(String.format("%d: %s", response.getStatusCode(), response.getStatusMessage()), request,
            response.getStatusCode(), response.getStatusMessage(),
            ImmutableListMultimap.copyOf(response.getHeaders()));
}

From source file:org.nmdp.ngs.variant.vcf.VcfGenotype.java

/**
 * Create a new VCF genotype with the specified genotype fields.
 *
 * @param fields genotype fields, must not be null
 *//*from   w w w.  j a va2  s . c  om*/
VcfGenotype(final ListMultimap<String, String> fields) {
    this.fields = ImmutableListMultimap.copyOf(fields);
}

From source file:com.foundationdb.server.test.mt.util.TimeMarker.java

public ListMultimap<Long, String> getMarks() {
    return ImmutableListMultimap.copyOf(marks);
}

From source file:com.squareup.javapoet.AnnotationSpec.java

private AnnotationSpec(Builder builder) {
    this.type = builder.type;
    this.members = ImmutableListMultimap.copyOf(builder.members);
}

From source file:io.airlift.http.client.UnexpectedResponseException.java

public UnexpectedResponseException(String message, Request request, Response response) {
    this(message, request, response.getStatusCode(), response.getStatusMessage(),
            ImmutableListMultimap.copyOf(response.getHeaders()));
}

From source file:net.derquinse.common.collect.RegularImmutableHierarchy.java

RegularImmutableHierarchy(ImmutableHierarchy.Builder<E> builder) {
    this.elements = ImmutableSet.copyOf(builder.getElements());
    this.firstLevel = ImmutableList.copyOf(builder.getFirstLevel());
    this.parents = ImmutableMap.copyOf(builder.getParents());
    this.children = ImmutableListMultimap.copyOf(builder.getChildren());
    // Incomplete integrity check
    checkArgument(elements.size() == firstLevel.size() + children.size(), "Inconsistent hierarchy.");
}