Explicitly specifies the return type of this Invokable. For example: Method factoryMethod = Person.class.getMethod("create"); Invokable<?, Person> factory = Invokable.of(getNameMethod).returning(Person.class);
(Class<R1> returnType)
| 156 | |
| 157 | |
| 158 | public final <R1 extends R> Invokable<T, R1> returning(Class<R1> returnType) { |
| 159 | return returning(TypeToken.of(returnType)); |
| 160 | } |
| 161 | |
| 162 | /** Explicitly specifies the return type of this {@code Invokable}. */ |
| 163 |
nothing calls this directly
no test coverage detected