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

uk.co.probablyfine.matchers.function.SingleArgumentDescribableFunctionalInterface Maven / Gradle / Ivy

The newest version!
package uk.co.probablyfine.matchers.function;

import java.lang.invoke.MethodType;

interface SingleArgumentDescribableFunctionalInterface extends SerializedLambdaResolvable {

    default String getArgumentDescription() {
        MethodType methodType = MethodType.fromMethodDescriptorString(asSerializedLambda().getInstantiatedMethodType(), getClass().getClassLoader());
        return methodType.parameterType(0).getSimpleName();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy