public class RefInt
extends java.lang.Object
| Constructor and Description |
|---|
RefInt(int value)
Mimics Out/Ref parameter initialisation with given Value.
|
RefInt(long value)
Mimics Out/Ref parameter initialisation with given Value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get()
Gets Out/Ref parameter Value
Should be used after calling the method with Out/Ref constructions
|
int |
set(int anotherValue)
Sets Out/Ref parameter Value
Should be used inside the method with Out/Ref constructions
|
int |
set(long anotherValue)
Sets Out/Ref parameter Value
Should be used inside the method with Out/Ref constructions
|
java.lang.String |
toString() |
public RefInt(int value)
public RefInt(long value)
public int get()
public int set(int anotherValue)
public int set(long anotherValue)
public java.lang.String toString()
toString in class java.lang.Object