immutable object from mutable object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tassos Souris
    New Member
    • Aug 2008
    • 152

    immutable object from mutable object

    hi!

    is there any way in java that i can create a immutable object from a mutable one? like the const in C/C++ and the Collections.unm odifiableXXX functionality from the Collections class. I know that this doesn't exist in java (as far as i know) but if anyone knew any trick (reflection, at byte level etc.. any weird stuff) to do that?????

    thanks in advance :)
Working...