|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Information about one block of stock.
Concrete implementations should have a constructor with parameters
stock
Date dateBought
double numShares, must be >0
double pricePerShare, must be >0
Method Summary | |
double |
getPricePerShare()
Tells the price per share of shares in this block |
double |
getShares()
Tells the number of shares in this block |
java.lang.String |
getStock()
Tells the stock which was bought or sold. |
java.util.Date |
getTransactionDate()
Tells the date the stock was purchased. |
Method Detail |
public java.lang.String getStock()
public java.util.Date getTransactionDate()
public double getShares()
public double getPricePerShare()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |