Invoke Instance Method Reference On Instance Argument

Viewed 460

In Java is it possible to, given a non-static method reference, and an instance of the class, somehow communicate that you would like that class instance to invoke that method?

Pseudo example:

public Object methodApply(Function<Object,Object> method, Object instance, List<Object> args) {
    return instance.method(args);
}
1 Answers
Related