目录

MapValue

Class Info

public class MapValue

Mapped value class.

Public Constructor Summary

Constructor Name

MapValue(int format, double doubleVar)

Builder for MapValue in double-precision floating-point format.

MapValue(int format, int intVar)

Builder for MapValue in integer format.

MapValue(int format, long longVar)

Builder for MapValue in long integer format.

MapValue(int format, String strVar)

Builder for MapValue in string format.

Public Method Summary

Qualifier and Type

Method Name and Description

final double

asDoubleValue()

Returns the double-precision floating-point value.

final int

asIntValue()

Returns the mapped value as an integer.

final long

asLongValue()

Returns the mapped value as a long integer.

final String

asStringValue()

Returns the mapped value as a string.

int

getFormat()

Obtains the type of the mapped value.

Public Constructors

[h2]MapValue(int format, double doubleVar)

Constructor

public public MapValue(int format, double doubleVar)

Builder for MapValue in double-precision floating-point format.

[h2]MapValue(int format, int intVar)

Constructor

public MapValue(int format, int intVar)

Builder for MapValue in integer format.

[h2]MapValue(int format, long longVar)

Constructor

public MapValue(int format, long longVar)

Builder for MapValue in long format.

[h2]MapValue(int format, String strVar)

Constructor

public MapValue(int format, String strVar)

Builder for MapValue in string format.

Public Methods

[h2]asDoubleValue()

Method

public final double asDoubleValue()

Returns the double-precision floating-point value.

Returns

Type

Description

double

Double-precision floating-point value.

[h2]asIntValue()

Method

public final int asIntValue()

Returns the mapped value as an integer.

Returns

Type

Description

int

Mapped value as an integer.

[h2]asLongValue()

Method

public final long asLongValue()

Returns the mapped value as a long integer.

Returns

Type

Description

long

Mapped value as a long integer.

[h2]asStringValue()

Method

public final String asStringValue()

Returns the mapped value as a string.

Returns

Type

Description

String

Mapped value as a string.

Returns

Type

Description

long

Mapped value as a long integer.

[h2]getFormat()

Method

public int getFormat()

Obtains the format of the mapped value.

Returns

Type

Description

int

Format of the mapped value.