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 :)
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 :)