
uk.co.probablyfine.matchers.function.SingleArgumentDescribableFunctionalInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-8-matchers Show documentation
Show all versions of java-8-matchers Show documentation
Hamcrest matchers for JDK8's Optionals and Streams, and the java.time package
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