I have a processor class that accepts arbitrary predicates to be run on streams, plus a field for sorting on. My Processor class like this:
import com.example