CLASS info |
|---|
public final class Value extends EnhanceParcelable |
Field value. |
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. |
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() |
From class | Return type | Method name |
|---|---|---|
java.lang.Object | boolean | public boolean equals(Object obj) |
int | public int hashCode() | |
String | public String toString() |
Constructor name |
|---|
public Value(int format) |
Constructor for Value. |
Parameters
Parameter name | Parameter desc |
|---|---|
format | Formatted value. |
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. |
Method |
|---|
public boolean isSet() |
Indicates whether the value has been set. |
Return
Type | Return desc |
|---|---|
boolean | Boolean: true or false |
Method |
|---|
public String asActivityType() |
Returns the activity type value. |
Return
type | desc |
|---|---|
String | Returns the activity type as a string. |
Method |
|---|
public float asFloatValue() |
Returns the type value as a float. |
Return
Type | Return desc |
|---|---|
float | Returns a float. |
Method |
|---|
public int asIntValue() |
Returns the value as an integer. |
Return
Type | Return desc |
|---|---|
int | Returns an integer. |
Method |
|---|
public String asStringValue() |
Returns the value as a string. |
Return
Type | Return desc |
|---|---|
String | String returned. |
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. |
Method |
|---|
public int getFormat() |
Obtains the type of the value. |
Return
Type | Return desc |
|---|---|
Int | Returns the sequence number of the type. |
Method |
|---|
public void setIntValue(int valueVar) |
Sets the value to be an integer. |
Parameters
Parameter name | Parameter desc |
|---|---|
valueVar | Integer. |
Method |
|---|
public void setFloatValue(float valueVar) |
Sets the value to be a float. |
Parameters
Parameter name | Parameter desc |
|---|---|
valueVar | Float. |
Method |
|---|
public void setStringValue(String valueVar) |
Sets the value to be a string. |
Parameters
Parameter name | Parameter desc |
|---|---|
valueVar | String. |
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. |
Method |
|---|
public void setActivityIndexValue(String activity) |
Sets the value of the activity type in the index. |
Parameters
Parameter name | Parameter desc |
|---|---|
Activity | Activity type. |
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. |
Method |
|---|
public boolean equals(Object value) |
Method |
|---|
public int hashCode() |
Method |
|---|
public String toString() |