Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1
-
None
-
None
-
Operating System: All
Platform: All
-
37111
Description
I ran into a situation where a MutableBoolean implementation was actually useful and wondered if
Commons Lang might consider adding the implementation. My example:
final MutableBoolean success = new MutableBoolean(false);
doSomething(new MyCallbackInterface() {
public void callback()
);
Basically the ability to change the boolean's state within an inner class, where the declared object must
be 'final'. Pretty obscure I realize, but this turned out to be quite useful in the application I was working
on.