Is there an interface in Java similar to the Callable interface, that can accept an argument to its call method?
Callable
Like so:
public interface M
Since Java 1.8 there is a Supplier interface. It has a get() method instead of call() and it does not declare any Exception thrown.
Supplier
get()
call()