目录

Value

Class Info

public final class Value

Attribute value.

Public Constructor Summary

Constructor Name

Value(int format)

Builder for the attribute value.

Public Method Summary

Qualifier and Type

Method Name and Description

String

asActivityType()

Returns the activity type value.

double

asDoubleValue()

Returns the value as a double-precision floating-point number.

int

asIntValue()

Returns the value as an integer.

long

asLongValue()

Returns the value as a long integer.

String

asStringValue()

Returns the value as a string.

int

getFormat()

Obtains the type of the value.

Map<String, MapValue>

getMap()

Obtains the map.

MapValue

getMapValue(String key)

Obtains the MapValue corresponding to the key in the map.

boolean

isSet()

Indicates whether the value has been set.

void

removeMapValue(String key)

Removes the value corresponding to the key in the map.

void

setActivityIndexValue(String activity)

Sets the value of the activity type in the index.

void

setDoubleValue(double valueVar)

Sets the value to a double-precision floating-point number.

void

setIntValue(int valueVar)

Sets the value to an integer.

void

setKeyValue(String key, double valueVar)

Assigns a double-precision floating-point value to a specified key in the map.

void

setKeyValue(String key, int valueVar)

Assigns an integer value to a specified key in the map.

void

setKeyValue(String key, long valueVar)

Assigns a long integer value to a specified key in the map.

void

setKeyValue(String key, String valueVar)

Assigns a string value to a specified key in the map.

void

setLongValue(long longValue)

Sets the value to a long integer.

void

setStringValue(String valueVar)

Sets the value to a string.

Public Constructors

[h2]Value(int format)

Constructor

public Value(int format)

Builder for the attribute value.

Parameters

Name

Description

format

Attribute value type.

Public Methods

[h2]asActivityType()

Method

public String asActivityType()

Returns the activity type value.

Returns

type

Description

String

Activity type as a string.

[h2]asDoubleValue()

Method

public double asDoubleValue()

Returns the value as a double-precision floating-point number.

Returns

Type

Description

double

Double-precision floating-point number.

[h2]asIntValue()

Method

public int asIntValue()

Returns the value as an integer.

Returns

Type

Description

int

Integer.

[h2]asLongValue()

Method

public long asLongValue()

Returns the value as a long integer.

Returns

Type

Description

long

Value as a long integer.

[h2]asStringValue()

Method

public String asStringValue()

Returns the value as a string.

Returns

Type

Description

String

String.

[h2]getFormat()

Method

public int getFormat()

Obtains the type of the value.

Returns

Type

Description

int

Sequence number of the type.

[h2]getMap()

Method

public Map<String, MapValue> getMap()

Obtains the map.

Returns

Type

Description

Map<String, MapValue>

Map.

[h2]getMapValue(String key)

Method

public MapValue getMapValue(String key)

Obtains the MapValue corresponding to the key in the map.

Parameters

Name

Description

Key

Key in the map.

Returns

Type

Description

MapValue

Mapped value.

[h2]isSet()

Method

public boolean isSet()

Indicates whether the value has been set.

Returns

Type

Description

boolean

Whether a value has been set.

[h2]removeMapValue(String key)

Method

public void removeMapValue(String key)

Removes the value corresponding to the key in the map.

Parameters

Name

Description

key

Key in the map.

[h2]setActivityIndexValue(String activity)

Method

public void setActivityIndexValue(String activity)

Sets the value of the activity type in the index.

Parameters

Name

Description

activity

Activity type.

[h2]setDoubleValue(double valueVar)

Method

public void setDoubleValue(double valueVar)

Sets the value to a double-precision floating-point number.

Parameters

Name

Description

valueVar

Double-precision floating-point number.

[h2]setIntValue(int valueVar)

Method

public void setIntValue(int valueVar)

Sets the value to an integer.

Parameters

Name

Description

valueVar

Integer.

[h2]setLongValue(long longValue)

Method

public void setLongValue(long longValue)

Sets the value to a long integer.

Parameters

Name

Description

longValue

Value as a long integer.

[h2]setKeyValue(String key, double value)

Method

public void setKeyValue(String key, double value)

Assigns a double-precision floating-point value to a specified key in the map.

Parameters

Name

Description

key

Key in the map.

value

Mapped value as a float.

[h2]setKeyValue(String key, int valueVar)

Method

public void setKeyValue(String key, int valueVar)

Assigns an integer value to a specified key in the map.

Parameters

Name

Description

key

Key in the map.

valueVar

Mapped value as an integer.

[h2]setKeyValue(String key, long valueVar)

Method

public void setKeyValue(String key, long valueVar)

Assigns a long integer value to a specified key in the map.

Parameters

Name

Description

key

Key in the map.

valueVar

Mapped value as a long integer.

[h2]setKeyValue(String key, String valueVar)

Method

public void setKeyValue(String key, String valueVar)

Assigns a string value to a specified key in the map.

Parameters

Name

Description

key

Key in the map.

valueVar

Mapped value as a string.

[h2]setStringValue(String valueVar)

Method

public void setStringValue(String valueVar)

Sets the value to a string.

Parameters

Name

Description

valueVar

String.