14
Is there an interface from the JDK that looks something like this:
public interface Callback<T> {
public void process(T t);
}
The requirement is to implement a callback that runs code, but doesn't return anything.
I could write my own (by simply using the example code here), but I'd like to use an existing wheel if one exists, rather that reinventing one.