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

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

Introduction

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

Prototype

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

Source Link

Document

Returns an immutable multimap containing the given entries, in the "key-grouped" insertion order described in the class documentation.

Usage

From source file:org.obm.sync.client.login.LoginClient.java

@Override
public boolean authenticateAdmin(String login, String password, String domainName) throws AuthFault {
    ImmutableMultimap<String, String> params = ImmutableMultimap.of("login", login, "password", password,
            "origin", origin, "domainName", domainName);

    AccessToken token = newAccessToken(login, domainConfiguration.getGlobalDomain(), origin);

    Document doc = execute(token, "/login/authenticateAdmin", params);
    exceptionFactory.checkLoginExpection(doc);
    return Boolean.valueOf(DOMUtils.getElementText(doc.getDocumentElement(), "value"));
}