Ref

Inheritance: java.lang.Object

public class Ref

Represents Generic Out/Ref constructions

Constructors

ConstructorDescription
Ref(Object 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(Object anotherValue)Sets Out/Ref parameter Value Should be used inside the method with Out/Ref constructions
toString()

Ref(Object value)

public Ref(Object value)

Mimics Out/Ref parameter initialisation with given Value. Should be used before calling the method with Out/Ref constructions

Parameters:

ParameterTypeDescription
valuejava.lang.Object

get()

public Object get()

Gets Out/Ref parameter Value Should be used after calling the method with Out/Ref constructions

Returns: java.lang.Object

set(Object anotherValue)

public Object set(Object anotherValue)

Sets Out/Ref parameter Value Should be used inside the method with Out/Ref constructions

Parameters:

ParameterTypeDescription
anotherValuejava.lang.Object

Returns: java.lang.Object

toString()

public String toString()

Returns: java.lang.String