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() 

Source Link

Usage

From source file:com.facebook.buck.config.Configs.java

/**
 * Convienence constructor/*  ww w .j a  v  a 2  s  .  c  o m*/
 */
public static Config createDefaultConfig(Path root) throws IOException {
    return createDefaultConfig(root, RawConfig.of(ImmutableMap.of()));
}

From source file:com.yfiton.oauth.Data.java

public Data() {
    this(ImmutableMap.of());
}

From source file:com.yfiton.oauth.AccessTokenData.java

public AccessTokenData() {
    this(UUID.randomUUID().toString(), ImmutableMap.of());
}

From source file:org.prebake.service.tools.BuiltinToolHooks.java

public static ImmutableMap<String, ?> extraEnvironmentFor(String builtinToolName) {
    ImmutableMap<String, ?> extraEnv = BY_TOOL.get(builtinToolName);
    if (extraEnv != null) {
        return extraEnv;
    }//from   www .j  av a 2 s  .c om
    return ImmutableMap.of();
}

From source file:com.ibm.og.soh.SOHWriteResponseBodyConsumer.java

@Override
public Map<String, String> consume(final int statusCode, final InputStream response) throws IOException {
    if (statusCode != 201) {
        return ImmutableMap.of();
    }/*www.  j  a  v a 2s.c om*/
    checkNotNull(response);

    final BufferedReader reader = new BufferedReader(new InputStreamReader(response, Charsets.UTF_8));

    final String objectName = reader.readLine();
    while ((reader.readLine()) != null) {
        // consume the stream, for SOH writes there should never be anything else
    }
    return ImmutableMap.of(Context.X_OG_OBJECT_NAME, objectName);
}

From source file:org.apache.james.mailbox.extractor.ParsedContent.java

public static ParsedContent empty() {
    return new ParsedContent(Optional.empty(), ImmutableMap.of());
}

From source file:com.github.lukaszbudnik.dqueue.OrderedItem.java

public OrderedItem(UUID startTime, UUID dependency, ByteBuffer contents) {
    this(startTime, dependency, contents, ImmutableMap.of());
}

From source file:io.prestosql.plugin.raptor.legacy.RaptorQueryRunner.java

public static DistributedQueryRunner createRaptorQueryRunner(Map<String, String> extraProperties,
        boolean loadTpch, boolean bucketed) throws Exception {
    return createRaptorQueryRunner(extraProperties, loadTpch, bucketed, ImmutableMap.of());
}

From source file:com.facebook.presto.raptor.PluginInfo.java

public Map<String, Module> getBackupProviders() {
    return ImmutableMap.of();
}

From source file:com.continuuity.weave.api.AbstractWeaveRunnable.java

protected AbstractWeaveRunnable() {
    this.args = ImmutableMap.of();
}