The general questions are:
object::aMethod
, can it be converted to a type such as MethodHandle
as a functional
A method reference works just like a lambda, and like a lambda, it doesn't have a "type" on its own. Its type depends on the context where it is used. So your question doesn't really make sense. If you use the method reference in a call to this MethodRefRunner.execute()
method, then the type of the method reference will be an instance of WHATTYPE
(whatever that is), because that's what the method was declared to accept. If you got it from somewhere else, well, that place will know what type it is.