public class Position extends Object implements com.gemstone.gemfire.cache.Declarable, Serializable
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 and Description |
|---|
Position() |
| Modifier and Type | Method and Description |
|---|---|
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() |
public void init(Properties props)
init in interface com.gemstone.gemfire.cache.Declarablepublic String getSecId()
public double getQty()
public double getMktValue()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.