Returns an instance of type token that wraps {@code type}.
(Class<T> type)
| 167 | |
| 168 | /** Returns an instance of type token that wraps {@code type}. */ |
| 169 | public static <T> TypeToken<T> of(Class<T> type) { |
| 170 | return new SimpleTypeToken<>(type); |
| 171 | } |
| 172 | |
| 173 | /** Returns an instance of type token that wraps {@code type}. */ |
| 174 | public static TypeToken<?> of(Type type) { |
no outgoing calls