Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 public Type tryResolve(TypeVariable<?> var) {
   Type resolvedType = mapping.tryResolve(var);
   return resolvedType;
 }