MCPcopy
hub / github.com/google/gson / get

Method get

gson/src/main/java/com/google/gson/reflect/TypeToken.java:355–357  ·  view source on GitHub ↗

Gets type literal for the given {@code Type} instance.

(Type type)

Source from the content-addressed store, hash-verified

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) {

Calls

no outgoing calls