@Override public OrderForm chechPrice(OrderForm orderForm) { if (orderForm.getPrice() == null) { orderForm.setPrice(0.0); return orderForm; } return orderForm; }
@Override public OrderForm checkForLemonAndIceCube(Drink value, OrderForm orderForm) { if (value.getName().equals("Lemon") && Boolean.parseBoolean(value.getValue()) == true) { orderForm.setLemon(true); return orderForm; } if (value.getName().equals("Ice Cube") && Boolean.parseBoolean(value.getValue()) == true) { orderForm.setIceCube(true); return orderForm; } return orderForm; }