Class PrecisionSubjectInfo

  • All Implemented Interfaces:
    SubjectInfo

    public class PrecisionSubjectInfo
    extends java.lang.Object
    implements SubjectInfo
    • Constructor Summary

      Constructors 
      Constructor Description
      PrecisionSubjectInfo​(java.lang.String subject, java.lang.String currencyPair, java.lang.String dealtCurrency)
      Constructs a PrecisionSubjectInfo based on the provided subscription parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getCurrencyPair()
      Returns the currency pair for the subscription.
      java.lang.String getDealtCurrency()
      Returns the dealt currency for the subscription as a String with no guarantee of its length.
      java.lang.String getSubject()
      Returns the original subject that was parsed to create this SubjectInfo
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PrecisionSubjectInfo

        public PrecisionSubjectInfo​(java.lang.String subject,
                                    java.lang.String currencyPair,
                                    java.lang.String dealtCurrency)
        Constructs a PrecisionSubjectInfo based on the provided subscription parameters.
        Parameters:
        subject - The full requested subject
        currencyPair - The requested currency pair.
        dealtCurrency - The requested dealt currency.
    • Method Detail

      • getSubject

        public java.lang.String getSubject()
        Description copied from interface: SubjectInfo
        Returns the original subject that was parsed to create this SubjectInfo
        Specified by:
        getSubject in interface SubjectInfo
        Returns:
        The original subject.
      • getCurrencyPair

        public java.lang.String getCurrencyPair()
        Returns the currency pair for the subscription.
        Returns:
        The currency pair in the format <basecurrency>_<termcurrency>
      • getDealtCurrency

        public java.lang.String 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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object