Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes how to make a user-defined class as immutable ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to make a user-defined class as immutable ?" Watch "how to make a user-defined class as immutable ?" New topic
Author

how to make a user-defined class as immutable ?

Praveen Vallabhaneni
Greenhorn

Joined: Aug 25, 2006
Posts: 3
how to make a user-defined class as immutable is it possible to do like that if so please explain me with example
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
JavaRanchs very own David O'Meara has written an article on this subject: Mutable and Immutable Objects


Ping & DNS - my free Android networking tools app
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to Java In General (Intermediate)


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Consider Paul's rocket mass heater.
 
subject: how to make a user-defined class as immutable ?
 
Similar Threads
imutable class
Java
immutable
How to make a class immutable??????????
class Immutable