Jerry Jalenak wrote:
Not sure what you mean by 'defensive copies'....  Is there something special
I need to do in my bean so I end up with a 'true' duplicate, and not just a
second reference?

Defensive copies... described in Josh Bloch's "Effective Java". Getter methods return a copy of the property that they would return in a normal class, so that client code can't affect that property and have the change trickle back into your object. Required for immutable classes that compose other objects which are mutable.






Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to