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) 

Source Link

Usage

From source file:org.jclouds.openstack.nova.v2_0.binders.BindKeyPairToJsonPayload.java

@Override
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
    return bindToRequest(request, (Object) ImmutableMap.of("keypair", ImmutableSortedMap.copyOf(postParams)));
}

From source file:org.apache.druid.server.coordinator.rules.ForeverLoadRule.java

@JsonCreator
public ForeverLoadRule(@JsonProperty("tieredReplicants") Map<String, Integer> tieredReplicants) {
    this.tieredReplicants = tieredReplicants == null
            ? ImmutableMap.of(DruidServer.DEFAULT_TIER, DruidServer.DEFAULT_NUM_REPLICANTS)
            : tieredReplicants;//from  w  w w .  j a v a 2s. com
    validateTieredReplicants(this.tieredReplicants);
}