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

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

Introduction

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

Prototype


@SuppressWarnings("unchecked")
public static <K, V> ImmutableListMultimap<K, V> of() 

Source Link

Document

Returns the empty multimap.

Usage

From source file:edu.buaa.satla.analysis.cfa.CProgramScope.java

/**
 * Returns an empty program scope./*from w  ww .j a  v  a2  s. c  om*/
 */
private CProgramScope() {
    variableNames = Collections.emptySet();
    qualifiedDeclarations = Collections.emptyMap();
    uniqueSimpleDeclarations = Collections.emptyMap();
    functionDeclarations = ImmutableListMultimap.of();
    qualifiedTypes = Collections.emptyMap();
    qualifiedTypeDefs = Collections.emptyMap();
    functionName = null;
}

From source file:com.linecorp.armeria.common.MediaType.java

/**
 * Creates a new media type with the given type and subtype.
 *
 * @throws IllegalArgumentException if type or subtype is invalid or if a wildcard is used for the
 *     type, but not the subtype.//from  www  .j  a v a  2s.  co  m
 */
public static MediaType create(String type, String subtype) {
    return create(type, subtype, ImmutableListMultimap.of());
}

From source file:org.glowroot.agent.impl.Transaction.java

private ListMultimap<TraceEntryImpl, ThreadContextImpl> buildPriorEntryChildThreadContextMap() {
    synchronized (mainThreadContext) {
        if (auxThreadContexts == null) {
            return ImmutableListMultimap.of();
        }/*from  ww w.  j a  v  a  2  s .co  m*/
        ListMultimap<TraceEntryImpl, ThreadContextImpl> parentChildMap = ArrayListMultimap.create();
        for (ThreadContextImpl auxThreadContext : getUnmergedAuxThreadContext()) {
            // checkNotNull is safe b/c aux thread contexts have non-null parent thread context
            // prior entries when they are not limit exceeded aux thread contexts
            parentChildMap.put(checkNotNull(auxThreadContext.getParentThreadContextPriorEntry()),
                    auxThreadContext);
        }
        return parentChildMap;
    }
}