Package com.caplin.motif.fx.precision
Class PrecisionSubjectInfo
java.lang.Object
com.caplin.motif.fx.precision.PrecisionSubjectInfo
- All Implemented Interfaces:
SubjectInfo
-
Constructor Summary
ConstructorDescriptionPrecisionSubjectInfo
(String subject, String currencyPair, String dealtCurrency) Constructs a PrecisionSubjectInfo based on the provided subscription parameters. -
Method Summary
-
Constructor Details
-
PrecisionSubjectInfo
Constructs a PrecisionSubjectInfo based on the provided subscription parameters.- Parameters:
subject
- The full requested subjectcurrencyPair
- The requested currency pair.dealtCurrency
- The requested dealt currency.
-
-
Method Details
-
getSubject
Description copied from interface:SubjectInfo
Returns the original subject that was parsed to create this SubjectInfo- Specified by:
getSubject
in interfaceSubjectInfo
- Returns:
- The original subject.
-
getCurrencyPair
Returns the currency pair for the subscription.- Returns:
- The currency pair in the format
<basecurrency>_<termcurrency>
-
getDealtCurrency
Returns the dealt currency for the subscription as a String with no guarantee of its length.- Returns:
- The dealt currency for the subscription.
-
equals
-
hashCode
public int hashCode() -
toString
-