Example usage for com.google.common.collect EnumHashBiMap create

List of usage examples for com.google.common.collect EnumHashBiMap create

Introduction

In this page you can find the example usage for com.google.common.collect EnumHashBiMap create.

Prototype

public static <K extends Enum<K>, V> EnumHashBiMap<K, V> create(Map<K, ? extends V> map) 

Source Link

Document

Constructs a new bimap with the same mappings as the specified map.

Usage

From source file:com.github.nmorel.gwtjackson.guava.client.deser.EnumHashBiMapJsonDeserializer.java

@Override
protected EnumHashBiMap<E, V> newMap() {
    return EnumHashBiMap.create(enumClass);
}