/** * Resolve the specified generic type against the given TypeVariable map. * <p>Used by Spring Data. * @param genericType the generic type to resolve * @param map the TypeVariable Map to resolved against * @return the type if it resolves to a Class, or {@code Object.class} otherwise */ @SuppressWarnings("rawtypes") public static Class<?> resolveType(Type genericType, Map<TypeVariable, Type> map) { return ResolvableType.forType(genericType, new TypeVariableMapVariableResolver(map)).toClass(); }
/** * Resolve the specified generic type against the given TypeVariable map. * <p>Used by Spring Data. * @param genericType the generic type to resolve * @param map the TypeVariable Map to resolved against * @return the type if it resolves to a Class, or {@code Object.class} otherwise */ @SuppressWarnings("rawtypes") public static Class<?> resolveType(Type genericType, Map<TypeVariable, Type> map) { return ResolvableType.forType(genericType, new TypeVariableMapVariableResolver(map)).toClass(); }
/** * Resolve the specified generic type against the given TypeVariable map. * <p>Used by Spring Data. * @param genericType the generic type to resolve * @param map the TypeVariable Map to resolved against * @return the type if it resolves to a Class, or {@code Object.class} otherwise */ @SuppressWarnings("rawtypes") public static Class<?> resolveType(Type genericType, Map<TypeVariable, Type> map) { return ResolvableType.forType(genericType, new TypeVariableMapVariableResolver(map)).toClass(); }
/** * Resolve the specified generic type against the given TypeVariable map. * <p>Used by Spring Data. * @param genericType the generic type to resolve * @param map the TypeVariable Map to resolved against * @return the type if it resolves to a Class, or {@code Object.class} otherwise */ @SuppressWarnings("rawtypes") public static Class<?> resolveType(Type genericType, Map<TypeVariable, Type> map) { return ResolvableType.forType(genericType, new TypeVariableMapVariableResolver(map)).toClass(); }