Let's please rename Block to Receiver before it's too late

Doug Lea dl at cs.oswego.edu
Sat Jan 19 06:57:00 PST 2013


On 01/19/13 09:43, Remi Forax wrote:

>> interface Action<T> { void accept(T t); }
>
> Writing event broadcaster (listener support in swing slang) is a place where you
> want to mix streams and swing actions.
>    listeners.stream().filter(l -> l instanceof XXXListener).forEach(l ->
> l.fireEvent(...));

People can do this without ever importing or using j.u.f.Action.
The only people affected are those writing new methods with
j.u.f.Action vs javax.swing.Action arguments. Still concerned?

-Doug




More information about the lambda-libs-spec-experts mailing list