public class Position extends java.lang.Object implements java.io.Serializable, DataSerializable, java.lang.Comparable
DataSerializable.Replaceable
Modifier and Type | Field and Description |
---|---|
static int |
cnt |
double |
mktValue |
int |
portfolioId |
java.lang.String |
secId |
java.lang.String |
secIdIndexed |
java.lang.String |
secType |
java.lang.String |
underlyer |
Constructor and Description |
---|
Position() |
Position(java.lang.String id,
double out) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
void |
fromData(java.io.DataInput in)
Reads the state of this object as primitive data from the given
DataInput . |
java.util.Set |
getCol() |
int |
getId() |
double |
getMktValue() |
int |
getPid() |
java.lang.String |
getSecId() |
java.util.Set |
getSet(int size) |
double |
getSharesOutstanding() |
int |
hashCode() |
static void |
resetCounter() |
void |
toData(java.io.DataOutput out)
Writes the state of this object as primitive data to the given
DataOutput . |
java.lang.String |
toString() |
public double mktValue
public java.lang.String secId
public java.lang.String secIdIndexed
public java.lang.String secType
public java.lang.String underlyer
public static int cnt
public int portfolioId
public Position()
public Position(java.lang.String id, double out)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static void resetCounter()
public double getMktValue()
public java.lang.String getSecId()
public int getId()
public double getSharesOutstanding()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set getSet(int size)
public java.util.Set getCol()
public int getPid()
public void fromData(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException
DataSerializable
DataInput
.fromData
in interface DataSerializable
java.io.IOException
- A problem occurs while reading from in
java.lang.ClassNotFoundException
- A class could not be loaded while reading from in
public void toData(java.io.DataOutput out) throws java.io.IOException
DataSerializable
DataOutput
.
Since 5.7 it is possible for any method call to the specified DataOutput
to throw
GemFireRethrowable
. It should not be caught by user code. If it is it
must be rethrown.
toData
in interface DataSerializable
java.io.IOException
- A problem occurs while writing to out
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable