CurrencyCollection function ( int arg0 , CurrencyCollection arg1 ) { if ( arg1 . getBalance ( ) < arg0 ) { throw new IllegalArgumentException ( ) ; } int loc0 = arg1 . getBalance ( ) ; int loc1 = loc0 - arg0 ; cashDrawer . depositCurrencyCollection ( arg1 ) ; return cashDrawer . refundByAmount ( loc1 ) ; }
handles a customer purchase from the cash register concode_field_sep CurrencyCollection cashDrawer concode_elem_sep int INITIAL_COUNT concode_field_sep int getCurrentBalance concode_elem_sep CurrencyCollection processRefund