All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cucumber.runtime.java8.ParameterInfo Maven / Gradle / Ivy

There is a newer version: 7.18.1
Show newest version
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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy