Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package eAuctionSystem;
- public class Bid {
- private double amount;
- private Buyer who;
- private String when;
- private Auction auction;
- public Bid(double amount, Buyer who, String when, Auction auction) {
- this.amount = amount;
- this.who = who;
- this.when = when;
- this.auction = auction;
- }
- /**
- * Gets the amount of the bid
- * @return Returns amount of the bid
- */
- public double getAmount() {
- return this.amount;
- }
- /**
- * Gets the buyer name
- * @return Returns the buyer name
- */
- public Buyer getWho() {
- return this.who;
- }
- /**
- * Gets the time when the bid ends
- * @return Returns the time when bid ends
- */
- public String getWhen() {
- return this.when;
- }
- /**
- * Gets the auction
- * @return Returns the auction
- */
- public Auction getAuction() {
- return this.auction;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement