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

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

Introduction

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

Prototype

public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) 

Source Link

Usage

From source file:org.trustedanalytics.servicebroker.h2oprovisioner.rest.api.H2oCredentials.java

public Map<String, Object> toMap() {
    return ImmutableMap.of("hostname", hostname, "port", port, "username", username, "password", password);
}

From source file:org.eclipse.che.plugin.docker.machine.DockerInstanceKey.java

public DockerInstanceKey(String repository, String tag, String registry, String digest) {
    super(ImmutableMap.of(REPOSITORY, repository, TAG, tag, REGISTRY, registry, DIGEST, digest));
}

From source file:forms.meta.MetaMap.java

/** Returns a MetaMap containing the given mappings. */
public static <T, U, V, W> MetaMap of(MetaField<T> tVar, T tVal, MetaField<U> uVar, U uVal, MetaField<V> vVar,
        V vVal, MetaField<W> wVar, W wVal) {
    return new MetaMap(ImmutableMap.of(tVar, tVal, uVar, uVal, vVar, vVal, wVar, wVal));
}