On Tue, 09 May 2017 14:52:09 +0200, Gilles <gil...@harfang.homelinux.org> wrote: > [I specifically avoided "apply" so that it is free for when the > component > targets Java 8.] > > Can the "apply" method be static?
No, interface implementations can't be static (and it is not possible to make an interface of static methods). > Won't a private constructor (which was my original intention) preclude > some of the functional usages? > If not, I'll make the change Yes, that would make it harder to do say a collection of functions that you combine in a stream. But they need a common interface, otherwise they will just happen to have the same name and extend java.lang.Object.. (If we upgrade to Java8 we won't need to make such an interface ourselves) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org