By mswatcher
via java.dzone.com
Published: Aug 09 2012 / 13:49
While this is a lot of typing, it gives you some type safety and the equivalence of named parameters. It might also be the first step toward value objects in your code, after all, when you have these values wrapped, why would you unwrap them before you have to? In that case you should implement hashcode and equals.
Comments
YeFFreY replied ago:
This is can be interesting also : http://zinzel.blogspot.be/2010/07/creating-methods-with-named-parameters.html
Voters For This Link (8)
Voters Against This Link (0)