RefDouble

Inheritance: java.lang.Object

public class RefDouble

Represents Out/Ref constructions for Double primitive type

Constructors

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

RefDouble(double value)

public RefDouble(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

get()

public double get()

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

Returns: double

set(double anotherValue)

public double set(double anotherValue)

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

Parameters:

ParameterTypeDescription
anotherValuedouble

Returns: double

toString()

public String toString()

Returns: java.lang.String