S
sakcee
is there a way to return a copy of collection instead of referance to
collection itself
I have a wrapper class to a collection('Big' HashMap) data structure.
I want to give an accessor method
but I want to return a copy of the structure instead of refernace to
structure
should I copy key by key?, can i use clone? is there a way to give
final referance so that user can not
chnage it?
which is better ?
thanks
collection itself
I have a wrapper class to a collection('Big' HashMap) data structure.
I want to give an accessor method
but I want to return a copy of the structure instead of refernace to
structure
should I copy key by key?, can i use clone? is there a way to give
final referance so that user can not
chnage it?
which is better ?
thanks