|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.otfeed.event.OTBookExecute
public final class OTBookExecute
This is a change to an existing order, and implies that a trade occurred. Look up the existing order using the order reference, and subtract the size from the order. If the order now has no shares, remove the order.
Constructor Summary | |
---|---|
OTBookExecute()
Default constructor. |
|
OTBookExecute(java.util.Date timestamp,
java.lang.String reference,
int size,
int matchNumber)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(OTBookExecute other)
|
boolean |
equals(java.lang.Object o)
|
int |
getMatchNumber()
|
java.lang.String |
getOrderRef()
|
int |
getSize()
|
java.util.Date |
getTimestamp()
|
int |
hashCode()
|
void |
setMatchNumber(int matchNumber)
Sets time of the event. |
void |
setOrderRef(java.lang.String reference)
Sets order reference. |
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 OTBookExecute()
public OTBookExecute(java.util.Date timestamp, java.lang.String reference, int size, int matchNumber)
timestamp
- Time when the event occurred.reference
- Order reference.size
- Number of shares.matchNumber
- ISLD specific unique match identifier.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 int getSize()
public void setSize(int size)
size
- Number of shares.public int getMatchNumber()
public void setMatchNumber(int matchNumber)
matchNumber
- Time when the event occurred.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(OTBookExecute other)
compareTo
in interface java.lang.Comparable<OTBookExecute>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |