|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.otfeed.event.OTBookChange
public final class OTBookChange
Look up the order, and change its size.
Constructor Summary | |
---|---|
OTBookChange()
Default constructor. |
|
OTBookChange(java.util.Date timestamp,
java.lang.String reference,
double price,
int size)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(OTBookChange other)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getOrderRef()
|
double |
getPrice()
|
int |
getSize()
|
java.util.Date |
getTimestamp()
|
int |
hashCode()
|
void |
setOrderRef(java.lang.String reference)
Sets order reference. |
void |
setPrice(double price)
Sets price. |
void |
setSize(int size)
Sets number of shares. |
void |
setTimestamp(java.util.Date timestamp)
Sets time of the event. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OTBookChange()
public OTBookChange(java.util.Date timestamp, java.lang.String reference, double price, int size)
timestamp
- Time when the event occurred.reference
- Order reference.price
- Price.size
- Number of shares.Method Detail |
---|
public java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timestamp)
timestamp
- Time when the event occurred.public java.lang.String getOrderRef()
public void setOrderRef(java.lang.String reference)
reference
- Order reference.public double getPrice()
public void setPrice(double price)
price
- Price.public int getSize()
public void setSize(int size)
size
- Number of shares.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(OTBookChange other)
compareTo
in interface java.lang.Comparable<OTBookChange>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |