utility method for recalculateding the total inventory price . concode_field_sep double inventoryPriceTotal concode_elem_sep ArrayList inventory concode_elem_sep int inventoryUnitTotal concode_field_sep int getInventoryUnitTotal concode_elem_sep double getInventoryPriceTotal concode_elem_sep void addInventoryItem concode_elem_sep void removeInventoryItem concode_elem_sep ArrayList getInventory
void function ( ) { inventoryPriceTotal = 0 ; inventoryUnitTotal = 0 ; InventoryItem loc0 ; for ( int loc1 = 0 , loc2 = inventory . size ( ) ; loc1 < loc2 ; loc1 ++ ) { loc0 = ( InventoryItem ) inventory . get ( loc1 ) ; inventoryPriceTotal += loc0 . getPrice ( ) * loc0 . getQuantity ( ) ; inventoryUnitTotal += loc0 . getQuantity ( ) ; } }