System.getSystemPropertyAsInt()

Signature

int getSystemPropertyAsInt (String propertyKey, int defaultValue)

Domain

action, condition

Description

Returns the requested System property value as an int.

Parameters

NameTypeDescription
propertyKeyStringThe property key to set a new value for.
defaultValueintThe value to return if the requested value is not present.

Returns

TypeDescription
intThe requested System property value as an int.

Cautions

none

Example


System.getSystemPropertyAsInt ("be.myint", 5);

Result is: The int value of the System property "be.myint".