/** * Creates a {@link GenericType} with the given mapping for the given type variable. * * @param aMapping * @param aTypeVariable */ private GenericType(VariableMapping aMapping, TypeVariable<?> aTypeVariable) { this.mapping = aMapping; this.type = aMapping.tryResolve((TypeVariable<?>) aTypeVariable); }
public Type tryResolve(TypeVariable<?> var) { Type resolvedType = mapping.tryResolve(var); return resolvedType; }