Package com.caplin.motif.fx.rates.swap
Class SwapPointQuoteSubjectInfo
java.lang.Object
com.caplin.motif.fx.rates.swap.SwapPointQuoteSubjectInfo
- All Implemented Interfaces:
SubjectInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the amount for the subscriptionThe currency pair for the subscriptionReturns the dealt currency for the subscriptionReturns the far broken date for the subscription, if the request is for a broken date.Returns the far tenor for the subscription.Returns the near broken date for the subscription, if the request is for a broken date.Returns the near tenor for the subscription.Returns the subject for the subscriptionReturns the TOBO user for the subscriptionReturns the username for the subscriptioninthashCode()toString()
-
Constructor Details
-
SwapPointQuoteSubjectInfo
public SwapPointQuoteSubjectInfo(String subject, String username, String toboUser, String currencyPair, String nearTenorOrDate, String farTenorOrDate, String amount, String dealtCurrency) Constructs an SwapPointQuoteSubjectInfo based on the provided subscription parameters- Parameters:
subject- The full requested subjectusername- The requesting usertoboUser- The TOBO usercurrencyPair- The requested currency pairnearTenorOrDate- The requested near tenor or date string (in yyyyMMdd format)farTenorOrDate- The requested far tenor or date string (in yyyyMMdd format)amount- The requested amountdealtCurrency- The requested dealt currency
-
-
Method Details
-
getCurrencyPair
The currency pair for the subscription- Returns:
- The currency pair in the format
<base currency><term currency>. For example, if the base currency is "GBP" and the term currency is "USD" this method will return the string "GBPUSD".
-
getNearBrokenDate
Returns the near broken date for the subscription, if the request is for a broken date. Returns null otherwise. -
getNearTenor
Returns the near tenor for the subscription. -
getFarBrokenDate
Returns the far broken date for the subscription, if the request is for a broken date. Returns null otherwise. -
getFarTenor
Returns the far tenor for the subscription. -
getAmount
Returns the amount for the subscription -
getDealtCurrency
Returns the dealt currency for the subscription -
getSubject
Returns the subject for the subscription- Specified by:
getSubjectin interfaceSubjectInfo- Returns:
- The original subject.
-
getUsername
Returns the username for the subscription -
getToboUser
Returns the TOBO user for the subscription -
equals
-
hashCode
public int hashCode() -
toString
-