Getintdef, Getfloatdef, Getdoubledef – HP NonStop G-Series User Manual
Page 131
Usage Get the first item based on its name. If it does not exist, the default value will be returned. name specifies the name
of the item. def specifies the default short value.
Returns A short value.
Throws
NoSuchFieldError.
It is an invalid name.
IllegalAccessError.
Cannot delete an input item.
getIntDef
Gets the first item based on its name.
int getIntDef(String name, int def)
Usage Get the first item based on its name. If it does not exist, the default value will be returned. name specifies the name
of the item. def specifies the default int value.
Returns An integer value.
Throws
NoSuchFieldError.
It is an invalid name.
IllegalAccessError.
Cannot delete an input item.
getFloatDef
Gets the first item based on its name.
float getFloatDef(String name, float def)
Usage Get the first item based on its name. If it does not exist, the default value will be returned. name specifies the name
of the item. def specifies the default float value.
Returns A floating point value.
Throws
NoSuchFieldError.
It is an invalid name.
getDoubleDef
Gets the first item based on its specified name.
double getDoubleDef(String name, double def)
Usage Get the first item based on its specified name. If it does not exist, the default value is returned. name specifies the
name of the item. def specifies the default double value.
Returns A double precision value.