guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java
public static <B, T extends B> ImmutableClassToInstanceMap<B> of(Class<T> type, T value) {
    ImmutableMap<Class<? extends B>, B> map = ImmutableMap.<Class<? extends B>, B>of(type, value);
    return new ImmutableClassToInstanceMap<B>(map);
  }
public static <B, T extends B> ImmutableClassToInstanceMap<B> of(Class<T> type, T value) {
    ImmutableMap<Class<? extends B>, B> map = ImmutableMap.<Class<? extends B>, B>of(type, value);
    return new ImmutableClassToInstanceMap<B>(map);
  }
public static < B , T extends B > ImmutableClassToInstanceMap < B > of ( Class < T > type , T value ) { ImmutableMap < Class < ? extends B > , B > map = ImmutableMap . < Class < ? extends B > , B > of ( type , value ) ; return new ImmutableClassToInstanceMap < B > ( map ) ; }
Returns an {@code ImmutableClassToInstanceMap} containing a single entry.

@since 19.0
Returns an { @code ImmutableClassToInstanceMap } containing a single entry .