Is there a library out there that already provides the interfaces we need for the command pattern in Java?
For example:
public interface Func1<T,R> { public R execute(T input); }
public interface Func2<T1,T2,R> { public R execute(T1 input1, T2 input2); }
public interface Predicate1<T> { public boolean execute(T input); }
....
Thanks.
Predicate
and might also have those others. – Fellah