make object immutable
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mahender_kumar
Posted On:   Tuesday, July 24, 2007 02:55 PM


I NEED TO MAKE AN OBJECT IMMUTABLE
Please use html tags to format code blocks.

Re: make object immutable

Posted By:   WarnerJan_Veldhuis  
Posted On:   Wednesday, July 25, 2007 04:56 AM

Normally I don't respond to all caps writers, but you're lucky today: solution is here

Re: make object immutable

Posted By:   Tim_Frith  
Posted On:   Tuesday, July 24, 2007 05:41 PM

Have a look at java.util.Collections.


unmodifiableCollection() does that. There are other versions for List, Map, etc.

About | Sitemap | Contact