System.getSystemPropertyAsLong()
Signature
long getSystemPropertyAsLong (String propertyKey, long defaultValue)
Description
Returns the requested System property value as a long.
Parameters
Name | Type | Description |
propertyKey | String | The property key to set a new value for. |
defaultValue | long | The value to return if the requested value is not present. |
Returns
Type | Description |
long | The requested System property value as a long. |
Example
System.getSystemPropertyAsLong ("be.mylong", 6);
Result is: The long value of the System property "be.mylong".