文档管理中心

Value

展开

Class Info

public final class Value

属性值。

Public Constructor Summary

展开

Constructor Name

Value(int format)

属性值的构造方法。

Public Method Summary

展开

Qualifier and Type

Method Name and Description

String

asActivityType()

返回运动类型值。

double

asDoubleValue()

返回双精度浮点数类型值。

int

asIntValue()

返回整数类型值。

long

asLongValue()

返回长整数类型值。

String

asStringValue()

返回字符串类型值。

int

getFormat()

获取此值的类型。

Map<String, MapValue>

getMap()

获取映射表。

MapValue

getMapValue(String key)

获取映射表中给定键所对应的MapValue值。

boolean

isSet()

判断是否已设置值。

void

removeMapValue(String key)

清除映射表中给定键所对应的值。

void

setActivityIndexValue(String activity)

设置运动类型在索引中的值。

void

setDoubleValue(double valueVar)

设置双精度浮点数值。

void

setIntValue(int valueVar)

设置整型值。

void

setKeyValue(String key, double valueVar)

将映射表中给定的键赋对应的双精度浮点数值。

void

setKeyValue(String key, int valueVar)

将映射表中给定的键赋对应的整型值。

void

setKeyValue(String key, long valueVar)

将映射表中给定的键赋对应的长整型值。

void

setKeyValue(String key, String valueVar)

将映射表中给定的键赋对应的字符串值。

void

setLongValue(long longValue)

设置长整型值。

void

setStringValue(String valueVar)

设置字符串值。

Public Constructors

Value(int format)

展开

Constructor

public Value(int format)

属性值的构造方法。

Parameters

展开

Name

Description

format

属性值的类型。

Public Methods

asActivityType()

展开

Method

public String asActivityType()

返回运动类型值。

Returns

展开

type

Description

String

运动类型的字符串。

asDoubleValue()

展开

Method

public double asDoubleValue()

返回双精度浮点数类型值。

Returns

展开

Type

Description

double

双精度浮点数。

asIntValue()

展开

Method

public int asIntValue()

返回整数类型值。

Returns

展开

Type

Description

int

整型值。

asLongValue()

展开

Method

public long asLongValue()

返回长整数类型值。

Returns

展开

Type

Description

long

长整数型值。

asStringValue()

展开

Method

public String asStringValue()

返回字符串类型值。

Returns

展开

Type

Description

String

字符串。

getFormat()

展开

Method

public int getFormat()

获取此值的类型。

Returns

展开

Type

Description

int

类型序号。

getMap()

展开

Method

public Map<String, MapValue> getMap()

获取映射表。

Returns

展开

Type

Description

Map<String, MapValue>

映射表。

getMapValue(String key)

展开

Method

public MapValue getMapValue(String key)

获取映射表中key所对应的MapValue值。

Parameters

展开

Name

Description

Key

映射表中的键。

Returns

展开

Type

Description

MapValue

映射值。

isSet()

展开

Method

public boolean isSet()

判断是否已设置值。

Returns

展开

Type

Description

boolean

是否已设置值。

removeMapValue(String key)

展开

Method

public void removeMapValue(String key)

清除映射表中key所对应的值。

Parameters

展开

Name

Description

key

映射键。

setActivityIndexValue(String activity)

展开

Method

public void setActivityIndexValue(String activity)

设置运动类型在索引中的值。

Parameters

展开

Name

Description

activity

运动类型。

setDoubleValue(double valueVar)

展开

Method

public void setDoubleValue(double valueVar)

设置双精度浮点数值。

Parameters

展开

Name

Description

valueVar

双精度浮点数值。

setIntValue(int valueVar)

展开

Method

public void setIntValue(int valueVar)

设置整型值。

Parameters

展开

Name

Description

valueVar

整型值。

setLongValue(long longValue)

展开

Method

public void setLongValue(long longValue)

设置长整数类型值。

Parameters

展开

Name

Description

longValue

长整数类型值。

setKeyValue(String key, double value)

展开

Method

public void setKeyValue(String key, double value)

将映射表中给定的键赋对应的双精度浮点数值。

Parameters

展开

Name

Description

key

映射键。

value

浮点型映射值。

setKeyValue(String key, int valueVar)

展开

Method

public void setKeyValue(String key, int valueVar)

将映射表中给定的键赋对应的整型值。

Parameters

展开

Name

Description

key

映射键。

valueVar

整型映射值。

setKeyValue(String key, long valueVar)

展开

Method

public void setKeyValue(String key, long valueVar)

将映射表中给定的键赋对应的长整型值。

Parameters

展开

Name

Description

key

映射键。

valueVar

长整型映射值。

setKeyValue(String key, String valueVar)

展开

Method

public void setKeyValue(String key, String valueVar)

将映射表中给定的键赋对应的字符串值。

Parameters

展开

Name

Description

key

映射键。

valueVar

字符串映射值。

setStringValue(String valueVar)

展开

Method

public void setStringValue(String valueVar)

设置字符串值。

Parameters

展开

Name

Description

valueVar

字符串值。

在 API参考 中进行搜索
请输入您想要搜索的关键词