RFR: updated draft API for JEP 269 Convenience Collection Factories

Stuart Marks stuart.marks at oracle.com
Fri Nov 6 17:16:20 UTC 2015


On 11/5/15 11:15 PM, Remi Forax wrote:
> Hi Stuart,
> reading the documentation,
> methods of() are implementing the*static*  method factory pattern (introduced by Josh Blosch in Effective Java) not the "method factory pattern" which something else in the GoF [1] (and should not be used BTW).

Hi Remi,

Thanks for reading.

Yes indeed, it's right there in Item #1 of Effective Java. In fact Bloch takes 
care to distinguish the "static factory method" concept from "Factory Method" 
pattern from the Design Patterns book.

I'll make sure to tighten up the wording.

s'marks



More information about the core-libs-dev mailing list