|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessenger.FXQuote
public class FXQuote
Contains fields and getter methods for a FX Quote.
Constructor Summary | |
---|---|
FXQuote(java.util.Date timeStamp,
java.lang.String currencyPair,
java.lang.String offerID,
double offerPrice,
double offerSize,
java.lang.String bidID,
double bidPrice,
double bidSize)
Creates the FXQuote. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares quotes and returns true if the bid IDs and offerIDs are the same. |
java.lang.String |
getBidID()
Return string bidID. |
double |
getBidPrice()
Returns double bidPrice. |
double |
getBidSize()
Returns double bidSize. |
java.lang.String |
getCurrencyPair()
Returns String currencyPair. |
java.lang.String |
getOfferID()
Returns String offerID. |
double |
getOfferPrice()
Return double offerPrice. |
double |
getOfferSize()
Returns double offerSize. |
java.util.Date |
getTimeStamp()
Returns timestamp of when FXQuote is generated. |
int |
hashCode()
Override hashcode of objects to allow comparing of the objects. |
java.lang.String |
toString()
Pretty print of FXQuote. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FXQuote(java.util.Date timeStamp, java.lang.String currencyPair, java.lang.String offerID, double offerPrice, double offerSize, java.lang.String bidID, double bidPrice, double bidSize)
timeStamp
- time that the quote was issuedcurrencyPair
- currency pair in format XXX/YYYofferID
- offer IDofferPrice
- offer priceofferSize
- offer amountbidID
- bid IDbidPrice
- bid pricebidSize
- bid amountMethod Detail |
---|
public java.util.Date getTimeStamp()
public java.lang.String getOfferID()
public double getOfferSize()
public java.lang.String getCurrencyPair()
public double getOfferPrice()
public java.lang.String getBidID()
public double getBidPrice()
public double getBidSize()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |