Gets type literal for the given {@code Type} instance.
(Type type)
| 353 | |
| 354 | /** Gets type literal for the given {@code Type} instance. */ |
| 355 | public static TypeToken<?> get(Type type) { |
| 356 | return new TypeToken<>(type); |
| 357 | } |
| 358 | |
| 359 | /** Gets type literal for the given {@code Class} instance. */ |
| 360 | public static <T> TypeToken<T> get(Class<T> type) { |
no outgoing calls