SHARE
TWEET

Untitled

a guest Jun 19th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package aukcje;
  2.  
  3. public class AuctionDirector {
  4.  
  5.  
  6.    
  7.  
  8.     private AuctionBuilder auctionBuilder;
  9.  
  10.     public void setAuctionBuilder(AuctionBuilder ab) {
  11.         auctionBuilder = ab;
  12.     }
  13.  
  14.     public Auction getAuction() {
  15.         return auctionBuilder.getAuction();
  16.     }
  17.  
  18.  
  19.  
  20.     public void constructAuction(String name, String description, int initialPrice, int numberOfRounds, int minimumTrustPoints) {
  21.         auctionBuilder.createNewAuction();
  22.         auctionBuilder.buildName(name);
  23.         auctionBuilder.buildDescription(description);
  24.         auctionBuilder.buildInitialPrice(initialPrice);
  25.         auctionBuilder.buildNumberOfRounds(numberOfRounds);
  26.         auctionBuilder.buildMinimumTrustPoints(minimumTrustPoints);
  27.     }
  28.     }
RAW Paste Data
Want to get better at Java?
Learn to code Java in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top