isIsoVersion

Check if this LrISOMsg corresponds to the specified ISO version.

public boolean isIsoVersion(ISOVersionEnum isoVersion)

Parameters

  • isoVersion: The ISO version.

Return values

This function returns true if the ISO version is the same as the given version, otherwise returns false.

Example

Copy code
LrISOMsg m = new LrISOMsg();
m.setFieldNumber(ISO87Fields.PAN_PRIMARY_ACCOUNT_NUMBER);
if(m.isIsoVersion(ISOVersionEnum.ISO_87))
            lr.output_message("ISO version 87")
        else
            lr.output_message("Other ISO version");