void function ( E arg0 , int arg1 ) { if ( arg0 . getAmount ( ) < arg1 ) { throw new InvalidDrinkOrderException ( ) ; } arg0 . setAmount ( arg0 . getAmount ( ) - arg1 ) ; entityObserver . handleEntityEvent ( arg0 ) ; }
decreases amount of entity in coffee machine concode_field_sep EntityObserver<E> entityObserver concode_field_sep int getContainerLack concode_elem_sep void updateEntitiesInDatabase concode_elem_sep boolean isEntityNeedToBeFilled concode_elem_sep void fill concode_elem_sep void unUseEntity