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