I think you're the only one who posts some meaningful and worthy in the entire telugu community thank you for sharing your knowledge And I hope this boosts you a lot to yor journey
Hi @devsinprogress, Thanks for the video and clear explanation. I have a small question. Can we use Collections.unmodifiableList(list) inside a OrderBuilder calss instead of using List.copyOf() ? So that, maybe we can avoid Collections.unmodifiableList(list) in Order class's constructor? Is my understanding correct? or am I missing something here?
Builder class is responsible for gradually constructing an object. The immutability guarantee must be applied to the final object, not during the construction process. So, immutability should be handed over to outer class.
If you understood the explanation, please give a like 👍 and comment "understood."
Let's aim for 100 likes!
Major Respect anna, finest content, can't thank you enough!!
Understood Thanks for sharing bro
I think you're the only one who posts some meaningful and worthy in the entire telugu community thank you for sharing your knowledge And I hope this boosts you a lot to yor journey
Thank you! Please share our channel within your circle and help it reach the audience it deserves.
Thank you for this content
Understood bro
Thank you
Hi @devsinprogress,
Thanks for the video and clear explanation. I have a small question.
Can we use Collections.unmodifiableList(list) inside a OrderBuilder calss instead of using List.copyOf() ? So that, maybe we can avoid Collections.unmodifiableList(list) in Order class's constructor?
Is my understanding correct? or am I missing something here?
Builder class is responsible for gradually constructing an object.
The immutability guarantee must be applied to the final object, not during the construction process.
So, immutability should be handed over to outer class.