Integer prevCount = (Integer) equipmentAtLocation.get( equipmentType ); if ( null != prevCount ) { weaponCount += prevCount.intValue(); }
  private void addEquipmentType(EquipmentType equipmentType, int weaponCount,                                HMVWeaponLocation weaponLocation)  {    Hashtable equipmentAtLocation = (Hashtable) equipment.get(weaponLocation);    if (equipmentAtLocation == null)    {      equipmentAtLocation = new Hashtable();      equipment.put(weaponLocation, equipmentAtLocation);    }    equipmentAtLocation.put(equipmentType, new Integer(weaponCount));  }