commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Aymé <julien.a...@gmail.com>
Subject Re: Pointers
Date Tue, 04 Jan 2011 08:58:30 GMT
If you only use boolean, integer and long, you can also use AtomicXXX
from java.util.concurrent.atomic (if you have to use them in a
multi-threaded environment).
Otherwise, the MutableXXX wrappers in Commons Lang are good.

Julien

2011/1/3 Paul Benedict <pbenedict@apache.org>:
> Michael,
>
> Primitives are passed by value in Java. If you want to "modify" primitives,
> use the MutableXXX wrappers in Commons Lang.
>
> Paul
>
> On Mon, Jan 3, 2011 at 3:01 PM, Michael Giannakopoulos <miccagiann@gmail.com
>> wrote:
>
>> I mean exactly the same thing as C# but from the replies i see that's a
>> difficult task and also that has little to do with apache commons...
>> Because
>> i use java a lot it's annoying the fact that specific variables that i want
>> to change values in other functions cannot be passed as arguments but
>> instead you have to declare them as arrays or other objects... Thanks for
>> all the replies. Do you believe that something like that can start in
>> commons?
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message