Thursday, September 25, 2014

Implementation of immutable Value Object

Was reading article about Domain Driven Design here and wrote this snippet (in Java) about immutable Value Object. By setting the parameter to final will make it immutable, which will restrict the developer to change it's value.

Hope this is what the author means :p


No comments: