|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectcacheRunner.Position
public class Position
Represents a number of shares of a stock ("security") held in a
Portfolio.
This class is Serializable because we want it to be
distributed to multiple members of a distributed system. Because
this class is Declarable, we can describe instances of
it in a GemFire cache.xml file.
| Constructor Summary | |
|---|---|
Position()
|
|
| Method Summary | |
|---|---|
double |
getMktValue()
Returns the value of this position. |
double |
getQty()
Returns the number of shares held in this position. |
String |
getSecId()
Returns the id of the security held in this position. |
void |
init(Properties props)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Position()
| Method Detail |
|---|
public void init(Properties props)
init in interface Declarablepublic String getSecId()
public double getQty()
public double getMktValue()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||