equal
deleted
inserted
replaced
106 * Future versions of this API may accept additional types, |
106 * Future versions of this API may accept additional types, |
107 * such as abstract classes with single abstract methods. |
107 * such as abstract classes with single abstract methods. |
108 * Future versions of this API may also equip wrapper instances |
108 * Future versions of this API may also equip wrapper instances |
109 * with one or more additional public "marker" interfaces. |
109 * with one or more additional public "marker" interfaces. |
110 * |
110 * |
|
111 * @param <T> the desired type of the wrapper, a single-method interface |
|
112 * @param intfc a class object representing {@code T} |
111 * @param target the method handle to invoke from the wrapper |
113 * @param target the method handle to invoke from the wrapper |
112 * @param intfc the desired type of the wrapper, a single-method interface |
|
113 * @return a correctly-typed wrapper for the given target |
114 * @return a correctly-typed wrapper for the given target |
114 * @throws NullPointerException if either argument is null |
115 * @throws NullPointerException if either argument is null |
115 * @throws IllegalArgumentException if the {@code intfc} is not a |
116 * @throws IllegalArgumentException if the {@code intfc} is not a |
116 * valid argument to this method |
117 * valid argument to this method |
117 * @throws WrongMethodTypeException if the target cannot |
118 * @throws WrongMethodTypeException if the target cannot |