com.gain.rateservice
Class Rate

java.lang.Object
  |
  +--com.gain.rateservice.Rate

public class Rate
extends java.lang.Object

Rate - Contains rate information data


Constructor Summary
Rate()
           
 
Method Summary
 double getAsk()
          getAsk
 double getBid()
          getBid
 java.lang.String getCurrencyPair()
          getCurrencyPair
 java.lang.String getDealable()
          getDealable
 int getDecimalPlaces()
          getDecimalPlaces
 java.lang.String getDomain()
          getDomain
 double getHigh()
          getHigh
 java.lang.String getKey()
          getKey
 double getLow()
          getLow
 void setAsk(double ask)
           
 void setBid(double bid)
           
 void setCcyPair(java.lang.String ccyPair)
           
 void setDealable(java.lang.String dealable)
           
 void setDecimalPlaces(int decimalPlaces)
           
 void setDomain(java.lang.String domain)
           
 void setHigh(double high)
           
 void setKey(java.lang.String key)
           
 void setLow(double low)
           
 java.lang.String toString()
          toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rate

public Rate()
Method Detail

getKey

public java.lang.String getKey()
getKey
Returns:
a unqiue key which identifies the currency pair.

getCurrencyPair

public java.lang.String getCurrencyPair()
getCurrencyPair
Returns:
the currency pair of the rate

getBid

public double getBid()
getBid
Returns:
the bid value of the rate

getAsk

public double getAsk()
getAsk
Returns:
the ask value of the rate

getHigh

public double getHigh()
getHigh
Returns:
the high value of the rate

getLow

public double getLow()
getLow
Returns:
the low value of the rate

getDealable

public java.lang.String getDealable()
getDealable
Returns:
the dealable status of the rate, "D" for dealable "R" for refered

getDomain

public java.lang.String getDomain()
getDomain
Returns:
the domain of the rate

getDecimalPlaces

public int getDecimalPlaces()
getDecimalPlaces
Returns:
the decimal places of the rate

setKey

public void setKey(java.lang.String key)

setCcyPair

public void setCcyPair(java.lang.String ccyPair)

setBid

public void setBid(double bid)

setAsk

public void setAsk(double ask)

setHigh

public void setHigh(double high)

setLow

public void setLow(double low)

setDealable

public void setDealable(java.lang.String dealable)

setDomain

public void setDomain(java.lang.String domain)

setDecimalPlaces

public void setDecimalPlaces(int decimalPlaces)

toString

public java.lang.String toString()
toString
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the rate