guava/src/com/google/common/collect/Multimaps.java
@Beta
  @SuppressWarnings("unchecked")
  // safe by specification of SetMultimap.asMap()
  public static <K, V> Map<K, Set<V>> asMap(SetMultimap<K, V> multimap) {
    return (Map<K, Set<V>>) (Map<K, ?>) multimap.asMap();
  }
@Beta
  @SuppressWarnings("unchecked")
  // safe by specification of SetMultimap.asMap()
  public static <K, V> Map<K, Set<V>> asMap(SetMultimap<K, V> multimap) {
    return (Map<K, Set<V>>) (Map<K, ?>) multimap.asMap();
  }
@ Beta @ SuppressWarnings ( "unchecked" ) // safe by specification of SetMultimap.asMap() public static < K , V > Map < K , Set < V > > asMap ( SetMultimap < K , V > multimap ) { return ( Map < K , Set < V > > ) ( Map < K , ? > ) multimap . asMap ( ) ; }
Returns {@link SetMultimap#asMap multimap.asMap()}, with its type corrected from {@code Map<K,
Collection<V>>} to {@code Map<K, Set<V>>}.

@since 15.0
Returns { @link SetMultimap#asMap multimap . asMap () } with its type corrected from { @code Map<K Collection<V >> } to { @code Map<K Set<V >> } .