class AdditionalCompanyCostCategory implements FinanceRowCostCategory {

    @Override
    public void addCost(FinanceRowItem costItem) {
        AdditionalCompanyCost cost = (AdditionalCompanyCost) costItem;
        switch (cost.getType()) {
            case ASSOCIATE_SALARY:
                associateSalary = cost;
                break;
            case MANAGEMENT_SUPERVISION:
                managementSupervision = cost;
                break;
            case OTHER_STAFF:
                otherStaff = cost;
                break;
            case CAPITAL_EQUIPMENT:
                capitalEquipment = cost;
                break;
            case CONSUMABLES:
                consumables = cost;
                break;
            case OTHER_COSTS:
                otherCosts = cost;
                break;
        }
    }

}