RefInt
Contents
[
Hide
]Inheritance: java.lang.Object
public class RefInt
Represents Out/Ref constructions for Integer primitive type
Constructors
Constructor | Description |
---|---|
RefInt(int value) | Mimics Out/Ref parameter initialisation with given Value. |
RefInt(long value) | Mimics Out/Ref parameter initialisation with given Value. |
Methods
Method | Description |
---|---|
get() | Gets Out/Ref parameter Value Should be used after calling the method with Out/Ref constructions |
set(int anotherValue) | Sets Out/Ref parameter Value Should be used inside the method with Out/Ref constructions |
set(long anotherValue) | Sets Out/Ref parameter Value Should be used inside the method with Out/Ref constructions |
toString() |
RefInt(int value)
public RefInt(int value)
Mimics Out/Ref parameter initialisation with given Value. Should be used before calling the method with Out/Ref constructions
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
RefInt(long value)
public RefInt(long value)
Mimics Out/Ref parameter initialisation with given Value. Should be used before calling the method with Out/Ref constructions
Parameters:
Parameter | Type | Description |
---|---|---|
value | long |
get()
public int get()
Gets Out/Ref parameter Value Should be used after calling the method with Out/Ref constructions
Returns: int
set(int anotherValue)
public int set(int anotherValue)
Sets Out/Ref parameter Value Should be used inside the method with Out/Ref constructions
Parameters:
Parameter | Type | Description |
---|---|---|
anotherValue | int |
Returns: int
set(long anotherValue)
public int set(long anotherValue)
Sets Out/Ref parameter Value Should be used inside the method with Out/Ref constructions
Parameters:
Parameter | Type | Description |
---|---|---|
anotherValue | long |
Returns: int
toString()
public String toString()
Returns: java.lang.String