package bargainingchips.actions; import bargainingchips.Bundle; import bargainingchips.BundleBuilder; public class Bid extends Offer { /** * Creates a bid. Bundle is immutable and therefore so is Offer. */ public Bid(Bundle b) { super(b, OfferType.BID); } /** * Just a sample example of a bid */ public static Bid getSampleBid(String color, int qty) { Bundle b = new BundleBuilder() .addStack(color, 7.0, qty) .build(); return new Bid(b); } @Override public String toString() { return "Bid: " + getBundle(); } }