cucumber.runtime.java8.ParameterInfo Maven / Gradle / Ivy
package cucumber.runtime.java8;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
class ParameterInfo {
private final Type type;
static List fromTypes(Type[] genericParameterTypes) {
List result = new ArrayList<>();
for (Type genericParameterType : genericParameterTypes) {
result.add(new ParameterInfo(genericParameterType));
}
return result;
}
private ParameterInfo(Type type) {
this.type = type;
}
Type getType() {
return type;
}
@Override
public String toString() {
return type.toString();
}
}