Part of a big project I'm working on turned out interesting and potentially useful to others, so I'm trying to pull out a chunk of code and release it as its own project. One of its dependencies on the rest of the codebase is an interface that looks like this:
public interface Body { void eval(A value); }
I figure, rather than reinventing this type, it's probably better to introduce a dependency on some commonly-used library that already has it. I've looked through guava and commons-lang, and I'm surprised I can't find anything like this. Any ideas on where else I could look?