|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBidHistory
public class BidHistory
the bid history class. NOTE: The purpose of this code is to illustrate implementation starting from UML class and sequence diagrams. It may be incomplete and may not compile.
Field Summary | |
---|---|
private java.util.ArrayList<Bid> |
list
collection of Bid objects. |
Constructor Summary | |
---|---|
BidHistory()
constructs the bid history |
Method Summary | |
---|---|
void |
addBid(Bid bid)
save a bid to the history. |
Bid |
getHighestBid()
return the highest bid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<Bid> list
List
is an interface type.
ArrayList
,
Bid
Constructor Detail |
---|
public BidHistory()
Method Detail |
---|
public Bid getHighestBid()
public void addBid(Bid bid)
bid
- the new bid
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |