private String computeLicensedAmount(Properties vendorProps){
  String units=vendorProps.getProperty(LicenseConstants.STORAGE_CAPACITY_UNITS);
  if (units == null) {
    return null;
  }
  BigInteger computedLicensedCapacity=null;
  if (units.equalsIgnoreCase(LicenseConstants.TERABYTE)) {
    BigInteger licensedCapacity=new BigInteger(vendorProps.getProperty(LicenseConstants.STORAGE_CAPACITY));
    computedLicensedCapacity=licensedCapacity.multiply(LicenseConstants.TB_VALUE);
  }
  if (computedLicensedCapacity != null) {
    return computedLicensedCapacity.toString();
  }
 else {
    return "0";
  }
}

private String computeLicensedAmount ( Properties vendorProps ) { String units = vendorProps . getProperty ( LicenseConstants . STORAGE_CAPACITY_UNITS ) ; if ( units == null ) { return null ; } BigInteger computedLicensedCapacity = null ; if ( units . equalsIgnoreCase ( LicenseConstants . TERABYTE ) ) { BigInteger licensedCapacity = new BigInteger ( vendorProps . getProperty ( LicenseConstants . STORAGE_CAPACITY ) ) ; computedLicensedCapacity = licensedCapacity . multiply ( LicenseConstants . TB_VALUE ) ; } if ( computedLicensedCapacity != null ) { return computedLicensedCapacity . toString ( ) ; } else { return "0" ; } }
compute the licensed amount by computing storage capacity times the storage capacity unit .
