posted 18 years ago
Hi,
Is there any way to create an immutable class and be able to avoid writing equals/hashcode without killing the contracts or abstractions. As two objects having the same state have to be made equal, I think there is no way to do this without overriding equals and checking for attributes individually.
Tx