public final TypeToken<?> resolveType(Type type) {
    checkNotNull(type);
    // Being conservative here because the user could use resolveType() to resolve a type in an
    // invariant context.
    return of(getInvariantTypeResolver().resolveType(type));
  }
public final TypeToken<?> resolveType(Type type) {
    checkNotNull(type);
    
    
    return of(getInvariantTypeResolver().resolveType(type));
  }
public final TypeToken < ? > resolveType ( Type type ) { checkNotNull ( type ) ; // Being conservative here because the user could use resolveType() to resolve a type in an // invariant context. return of ( getInvariantTypeResolver ( ) . resolveType ( type ) ) ; }
Resolves the given {@code type} against the type context represented by this type. For example:

<pre>{@code
new TypeToken<List<String>>() {}.resolveType(
List.class.getMethod("get", int.class).getGenericReturnType())
=> String.class
}</pre>
Resolves the given { @code type } against the type context represented by this type . For example :