Class Info |
|---|
public final class Value Attribute value. |
Qualifier and Type | Method Name and Description |
|---|---|
String | Returns the activity type value. |
double | Returns the value as a double-precision floating-point number. |
int | Returns the value as an integer. |
long | Returns the value as a long integer. |
String | Returns the value as a string. |
int | Obtains the type of the value. |
Map<String, MapValue> | getMap() Obtains the map. |
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. |
Constructor |
|---|
public Value(int format) Builder for the attribute value. |
Parameters
Name | Description |
|---|---|
format | Attribute value type. |
Method |
|---|
public String asActivityType() Returns the activity type value. |
Returns
type | Description |
|---|---|
String | Activity type as a string. |
Method |
|---|
public double asDoubleValue() Returns the value as a double-precision floating-point number. |
Returns
Type | Description |
|---|---|
double | Double-precision floating-point number. |
Method |
|---|
public int asIntValue() Returns the value as an integer. |
Returns
Type | Description |
|---|---|
int | Integer. |
Method |
|---|
public long asLongValue() Returns the value as a long integer. |
Returns
Type | Description |
|---|---|
long | Value as a long integer. |
Method |
|---|
public String asStringValue() Returns the value as a string. |
Returns
Type | Description |
|---|---|
String | String. |
Method |
|---|
public int getFormat() Obtains the type of the value. |
Returns
Type | Description |
|---|---|
int | Sequence number of the type. |
Method |
|---|
public Map<String, MapValue> getMap() Obtains the map. |
Returns
Type | Description |
|---|---|
Map<String, MapValue> | Map. |
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 |
|---|---|
Mapped value. |
Method |
|---|
public boolean isSet() Indicates whether the value has been set. |
Returns
Type | Description |
|---|---|
boolean | Whether a value has been set. |
Method |
|---|
public void removeMapValue(String key) Removes the value corresponding to the key in the map. |
Parameters
Name | Description |
|---|---|
key | Key in the map. |
Method |
|---|
public void setActivityIndexValue(String activity) Sets the value of the activity type in the index. |
Parameters
Name | Description |
|---|---|
activity | Activity type. |
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. |
Method |
|---|
public void setIntValue(int valueVar) Sets the value to an integer. |
Parameters
Name | Description |
|---|---|
valueVar | Integer. |
Method |
|---|
public void setLongValue(long longValue) Sets the value to a long integer. |
Parameters
Name | Description |
|---|---|
longValue | Value as a long integer. |
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. |
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. |
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. |