4 ms·
Sorry, did "static factory" sound scary? How about "use a function to create your objects" instead? So instead of doing this: Foo foo = new Foo("bar"); Y
by wtetzner 11y ago
Sorry, did "static factory" sound scary? How about "use a function to create your objects" instead?
So instead of doing this:
Foo foo = new Foo("bar");
You can do this:
Foo foo = Foo.of("bar");
- nikolay 11y agoYeah, but how about the implementation?