ex5.backend
Class MyPortfolioView
java.lang.Object
|
+--ex5.backend.MyPortfolioView
- All Implemented Interfaces:
- PortfolioView
- public class MyPortfolioView
- extends Object
- implements PortfolioView
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyPortfolioView
public MyPortfolioView(String pf,
PortfolioActionHandler pah)
MyPortfolioView
protected MyPortfolioView(Vector portfolio)
numStocks
public int numStocks()
- Specified by:
numStocks
in interface PortfolioView
getName
public String getName()
- Specified by:
getName
in interface PortfolioView
getTicker
public String getTicker(int index)
- Specified by:
getTicker
in interface PortfolioView
getShares
public int getShares(int index)
- Specified by:
getShares
in interface PortfolioView
getPrice
public float getPrice(int index)
- Specified by:
getPrice
in interface PortfolioView
getIterator
public Iterator getIterator()
- Specified by:
getIterator
in interface PortfolioView