public final class BooleanHolder
extends java.lang.Object
boolean that is used to store
"out" and "inout"
parameters in methods. If a method has a boolean
as an "out" or "inout"
parameter, the programmer must pass an instance of BooleanHolder
as the corresponding parameter in the method invocation; for "inout"
parameters, the programmer must also fill the "in" value.
If myBooleanHolder is an instance of BooleanHolder,
the value stored in its value field can be accessed with
myBooleanHolder.value.
| Modifier and Type | Field and Description |
|---|---|
boolean |
value |
| Constructor and Description |
|---|
BooleanHolder() |
BooleanHolder(boolean initial) |