(Map<?, V> map)
| 97 | } |
| 98 | |
| 99 | private static <V extends Enum<V>> Class<V> inferValueType(Map<?, V> map) { |
| 100 | if (map instanceof EnumBiMap) { |
| 101 | return ((EnumBiMap<?, V>) map).valueType; |
| 102 | } |
| 103 | checkArgument(!map.isEmpty()); |
| 104 | return map.values().iterator().next().getDeclaringClass(); |
| 105 | } |
| 106 | |
| 107 | /** Returns the associated key type. */ |
| 108 |
no test coverage detected