beautypg.com

Getshortitemdef, Getintitemdef, Getfloatitemdef – HP NonStop G-Series User Manual

Page 133: Getdoubleitemdef

background image

getShortItemDef

Gets an occurrence of a named item of short data type.

short getShortItemDef(String name, int itemNo, short def)

Usage The occurrence starts from 0. If it does not exist, the default value will be returned. name specifies the name of the
item. itemNo specifies the occurrence number of the item. def specifies the default value.

Returns A short value.

Throws

NoSuchFieldError.

It is an invalid name.

getIntItemDef

Gets an occurrence of a named item of int data type.

int getIntItemDef(String name, int itemNo, int def)

Usage The occurrence starts from 0. If it does not exist, the default value will be returned. name specifies the name of the
item. itemNo specifies the occurrence number of the item. def specifies the default value.

Returns An integer value.

Throws

NoSuchFieldError.

It is an invalid name.

getFloatItemDef

Gets an occurrence of a named item of float data type.

float getFloatItemDef(String name, int itemNo, float def)

Usage The occurrence starts from 0. If it does not exist, the default value will be returned. name specifies the name of the
item. itemNo specifies the occurrence number of the item. def specifies the default value.

Returns A floating point value.

Throws

NoSuchFieldError.

It is an invalid name.

getDoubleItemDef

Gets an occurrence of a named item of double data type.

double getDoubleItemDef(String name, int itemNo, double def)

Usage The occurrence starts from 0. If it does not exist, the default value will be returned. name specifies the name of the
item. itemNo specifies the occurrence number of the item. def specifies the default value.

Returns A double precision value.