RefShort

Inheritance: java.lang.Object

public class RefShort

Represents Out/Ref constructions for Short primitive type

Constructors

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

RefShort(short value)

public RefShort(short value)

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

Parameters:

ParameterTypeDescription
valueshort

get()

public short get()

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

Returns: short

set(short anotherValue)

public short set(short anotherValue)

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

Parameters:

ParameterTypeDescription
anotherValueshort

Returns: short

toString()

public String toString()

Returns: java.lang.String