mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 03:24:58 +00:00
Javadoc
This commit is contained in:
parent
b4ef495751
commit
0659831ad4
@ -201,13 +201,13 @@ public static <T, R> Function<T, R> asFunction(final Method method) {
|
||||
* </p>
|
||||
*
|
||||
* @param <T> The interface type.
|
||||
* @param intfc The interface type.
|
||||
* @param interfaceClass a class object representing {@code T}.
|
||||
* @param method the method to invoke.
|
||||
* @return a correctly-typed wrapper for the given target.
|
||||
* @see MethodHandleProxies#asInterfaceInstance(Class, MethodHandle)
|
||||
*/
|
||||
public static <T> T asInterfaceInstance(final Class<T> intfc, final Method method) {
|
||||
return MethodHandleProxies.asInterfaceInstance(Objects.requireNonNull(intfc, "intfc"), unreflectUnchecked(method));
|
||||
public static <T> T asInterfaceInstance(final Class<T> interfaceClass, final Method method) {
|
||||
return MethodHandleProxies.asInterfaceInstance(Objects.requireNonNull(interfaceClass, "interfaceClass"), unreflectUnchecked(method));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user