目录

Value

CLASS info

public final class Value extends EnhanceParcelable

Field value.

Public Constructor Summary

Constructor name

public Value(int format)

Constructor for Value.

public Value(int formatVar, boolean hasSetVar, String stringValueVar, float floatValueVar, Map<String, MapValue> mapValueVar)

Constructor for Value.

Public Method Summary

Return

Method

String

asActivityType()

Returns the activity type value.

float

asFloatValue()

Returns the value as a float.

int

asIntValue()

Returns the value as an integer.

String

asStringValue()

Returns the value as a string.

void

setActivityIndexValue()

Sets the value of the activity type in the index.

void

removeMapValue(String key)

Removes the value corresponding to the key in the map.

boolean

equals(Object valueObj)

int

getFormat()

Obtains the type of the value.

Float

getMapValue(String key)

Obtains the value corresponding to the key in the map.

Map

getMap()

Obtains the map.

int

hashCode()

boolean

isSet()

Indicates whether the value has been set.

void

setFloatValue(float valueVar)

Sets the value to be a float.

void

setIntValue(int valueVar)

Sets the value to be an integer.

void

setKeyValue(String key, float valueVar)

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

void

setStringValue(String valueVar)

Sets the value to be a string.

String

toString()

Inherited Method Summary

[h2]equals(Object obj)/hashCode()/toString()

From class

Return type

Method name

java.lang.Object

boolean

public boolean equals(Object obj)

int

public int hashCode()

String

public String toString()

Public Constructors

[h2]Value(int format)

Constructor name

public Value(int format)

Constructor for Value.

Parameters

Parameter name

Parameter desc

format

Formatted value.

[h2]Value(int formatVar, boolean hasSetVar, String stringValueVar, float floatValueVar, Map<String, MapValue> mapValueVar)

Constructor name

public Value(int formatVar, boolean hasSetVar, String stringValueVar, float floatValueVar, Map<String, MapValue> mapValueVar)

Constructor for Value.

Parameters

Parameter name

Parameter desc

format

Format.

hasSet

Indicates whether the value has been set.

stringValue

Value as a string.

floatValue

Value as a float.

mapValue

Mapped value.

Public Methods

[h2]isSet()

Method

public boolean isSet()

Indicates whether the value has been set.

Return

Type

Return desc

boolean

Boolean: true or false

[h2]asActivityType()

Method

public String asActivityType()

Returns the activity type value.

Return

type

desc

String

Returns the activity type as a string.

[h2]asFloatValue()

Method

public float asFloatValue()

Returns the type value as a float.

Return

Type

Return desc

float

Returns a float.

[h2]asIntValue()

Method

public int asIntValue()

Returns the value as an integer.

Return

Type

Return desc

int

Returns an integer.

[h2]asStringValue()

Method

public String asStringValue()

Returns the value as a string.

Return

Type

Return desc

String

String returned.

[h2]getMapValue(String key)

Method

public Float getMapValue(String key)

Obtains the value corresponding to the key in the map.

Parameters

Parameter name

Parameter desc

Key

Key in the map.

Return

Type

Return desc

Float

Returns the mapped value as a float.

[h2]getFormat()

Method

public int getFormat()

Obtains the type of the value.

Return

Type

Return desc

Int

Returns the sequence number of the type.

[h2]setIntValue(int valueVar)

Method

public void setIntValue(int valueVar)

Sets the value to be an integer.

Parameters

Parameter name

Parameter desc

valueVar

Integer.

[h2]setFloatValue(float valueVar)

Method

public void setFloatValue(float valueVar)

Sets the value to be a float.

Parameters

Parameter name

Parameter desc

valueVar

Float.

[h2]setStringValue(String valueVar)

Method

public void setStringValue(String valueVar)

Sets the value to be a string.

Parameters

Parameter name

Parameter desc

valueVar

String.

[h2]setKeyValue(String key, float value)

Method

public void setKeyValue(String key, float value)

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

Parameters

Parameter name

Parameter desc

key

Key in the map.

value

Mapped value.

[h2]setActivityIndexValue(String activity)

Method

public void setActivityIndexValue(String activity)

Sets the value of the activity type in the index.

Parameters

Parameter name

Parameter desc

Activity

Activity type.

[h2]removeMapValue(String key)

Method

public void removeMapValue(String key)

Removes the value corresponding to the key in the map.

Parameters

Parameter name

Parameter desc

key

Key in the map.

[h2]equals(Object value)

Method

public boolean equals(Object value)

[h2]hashCode()

Method

public int hashCode()

[h2]toString()

Method

public String toString()