chapter_004/src/main/java/ru/job4j/trade/Repository.java
/**
     * Delete application from the container.
     *
     * @param application - application.
     */
Delete application from the container.
@param application - application.
Delete application from the container . @param application - application .
public void deleteApplication(Application application) {
        if (application.getAction().equals(BUY.getName())) {
            this.buySortTable.remove(application.getPrice());
        } else if (application.getAction().equals(SELL.getName())) {
            this.sellSortTable.remove(application.getPrice());
        } else {
            System.out.println("Please, write correct type of application");
        }
    }
public void deleteApplication ( Application application ) { if ( application . getAction ( ) . equals ( BUY . getName ( ) ) ) { this . buySortTable . remove ( application . getPrice ( ) ) ; } else if ( application . getAction ( ) . equals ( SELL . getName ( ) ) ) { this . sellSortTable . remove ( application . getPrice ( ) ) ; } else { System . out . println ( "Please, write correct type of application" ) ; } }
Delete application from the container.
Delete application from the container .