|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfreerails.world.accounts.AddItemTransaction
jfreerails.world.accounts.StockTransaction
public class StockTransaction
A transaction that occurs when a new company is founded or when a company issues additional shares.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jfreerails.world.accounts.Transaction |
|---|
Transaction.Category |
| Field Summary | |
|---|---|
private static long |
serialVersionUID
|
static int |
STOCK_BUNDLE_SIZE
|
| Constructor Summary | |
|---|---|
private |
StockTransaction(int quantity,
Money amount)
|
private |
StockTransaction(Transaction.Category category,
int playerId,
int quantity,
Money amount)
|
| Method Summary | |
|---|---|
static StockTransaction |
buyOrSellStock(int playerId,
int quantity,
Money stockPrice)
|
static StockTransaction |
issueStock(int playerId,
int quantity,
Money pricePerShare)
|
static StockTransaction |
issueStock(int quantity,
long pricePerShare)
|
| Methods inherited from class jfreerails.world.accounts.AddItemTransaction |
|---|
deltaAssets, deltaCash, equals, getCategory, getQuantity, getType, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public static final int STOCK_BUNDLE_SIZE
| Constructor Detail |
|---|
private StockTransaction(Transaction.Category category,
int playerId,
int quantity,
Money amount)
private StockTransaction(int quantity,
Money amount)
| Method Detail |
|---|
public static StockTransaction issueStock(int playerId,
int quantity,
Money pricePerShare)
public static StockTransaction buyOrSellStock(int playerId,
int quantity,
Money stockPrice)
public static StockTransaction issueStock(int quantity,
long pricePerShare)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||