4 ms·
His example is creating new instances. It just happens to be creating them from existing instances. Basically a clone and change kind of operation. You are r
by kasey_junk 12y ago
His example is creating new instances. It just happens to be creating them from existing instances. Basically a clone and change kind of operation.
You are right that normally you'd want the addFavourite method but in his example he is dealing with generated code which has a tendency towards verbosity.
You could add the method if Java allowed extension methods...