/guava/guava/src/com/google/common/collect/EnumBiMap.java
} return bimap;
return bimap; }
return new EnumBiMap<>(keyType, valueType); } public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> create(Map<K, V> map) { EnumBiMap<K, V> bimap = create(inferKeyTypeOrObjectUnderJ2cl(map), inferValueTypeOrObjectUnderJ2cl(map)); bimap.putAll(map); <extra_id_0> private EnumBiMap(Class<K> keyTypeOrObjectUnderJ2cl, Class<V> valueTypeOrObjectUnderJ2cl) { super( new EnumMap<K, V>(keyTypeOrObjectUnderJ2cl), new EnumMap<V, K>(valueTypeOrObjectUnderJ2cl)); this.keyTypeOrObjectUnderJ2cl = keyTypeOrObjectUnderJ2cl; this.valueTypeOrObjectUnderJ2cl = valueTypeOrObjectUnderJ2cl; }