Created
September 25, 2011 15:02
-
-
Save jeremyroman/1240690 to your computer and use it in GitHub Desktop.
Repetition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BananaMerchant { | |
private final BananaFactory bananaFactory; | |
private final ShippingAgent shippingAgent; | |
private final PricingBroker pricingBroker; | |
private final List<Banana> bananas; | |
private final Map<Integer, Customer> customerMap; | |
public BananaMerchant( | |
final BananaFactory bananaFactory, | |
final ShippingAgent shippingAgent, | |
final PricingBroker pricingBroker) { | |
this.bananaFactory = bananaFactory; | |
this.shippingAgent = shippingAgent; | |
this.pricingBroker = pricingBroker; | |
this.bananas = new ArrayList<Banana>(); | |
this.customerMap = new HashMap<Integer, Customer>(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment