RefInt

Inheritance: java.lang.Object

public class RefInt

Represents Out/Ref constructions for Integer primitive type

Constructors

ConstructorDescription
RefInt(int value)Mimics Out/Ref parameter initialisation with given Value.
RefInt(long value)Mimics Out/Ref parameter initialisation with given Value.

Methods

MethodDescription
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:

ParameterTypeDescription
valueint

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:

ParameterTypeDescription
valuelong

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:

ParameterTypeDescription
anotherValueint

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:

ParameterTypeDescription
anotherValuelong

Returns: int

toString()

public String toString()

Returns: java.lang.String