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

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

Introduction

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

Prototype

public static <K, V> ImmutableSetMultimap<K, V> of(K k1, V v1, K k2, V v2) 

Source Link

Document

Returns an immutable multimap containing the given entries, in order.

Usage

From source file:org.glowroot.local.store.TraceTestData.java

static Trace createTrace() {
    return Trace.builder().id("abc" + counter.getAndIncrement()).active(false).partial(false).error(false)
            .startTime(1).captureTime(11).duration(MILLISECONDS.toNanos(10)).transactionType("unit test")
            .transactionName("test transaction name").headline("test headline").user("j")
            .customAttributes("{\"abc\":\"xyz\", \"xyz\":\"abc\"}")
            .customAttributesForIndexing(ImmutableSetMultimap.of("abc", "xyz", "xyz", "abc"))
            .customDetail("{\"abc1\":\"xyz1\", \"xyz2\":\"abc2\"}").entryCount(1).profileSampleCount(0)
            .entriesExistence(Existence.NO).profileExistence(Existence.NO).build();
}