public class WorkoutInfo extends Serializer
Modifier and Type | Field and Description |
---|---|
static int |
WO_TYPE_CALL
Work out type Call
|
static int |
WO_TYPE_MATURITY
Work out type Maturity
|
static int |
WO_TYPE_PUT
Work out type Put
|
NULL_SER_STRING, VERSION
Constructor and Description |
---|
WorkoutInfo(byte[] ab)
WorkoutInfo de-serialization from input byte array
|
WorkoutInfo(double dblDate,
double dblYield,
double dblExerciseFactor,
int iWOType)
Constructor: Construct the class from the work-out date, yield, exercise factor, and type
|
Modifier and Type | Method and Description |
---|---|
double |
date()
Retrieve the Work-out Date
|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
double |
factor()
Retrieve the Work-out Factor
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
int |
type()
Retrieve the Work-out Type
|
double |
yield()
Retrieve the Work-out Yield
|
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter, getFieldDelimiter, getObjectTrailer
public static final int WO_TYPE_CALL
public static final int WO_TYPE_PUT
public static final int WO_TYPE_MATURITY
public WorkoutInfo(double dblDate, double dblYield, double dblExerciseFactor, int iWOType) throws java.lang.Exception
dblDate
- Work-out DatedblYield
- Work-out YielddblExerciseFactor
- Work-out FactoriWOType
- Work out Typejava.lang.Exception
- Thrown if input is invalidpublic WorkoutInfo(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if WorkoutInfo cannot be properly de-serializedpublic double date()
public double yield()
public double factor()
public int type()
public byte[] serialize()
Serializer
serialize
in class Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer
public static final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception