Class MarketDataName<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      MarketDataName()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(MarketDataName<?> other)
      Compares this name to another.
      boolean equals​(java.lang.Object obj)
      Checks if this instance equals another.
      abstract java.lang.Class<T> getMarketDataType()
      Gets the type of data this name refers to.
      abstract java.lang.String getName()
      Gets the market data name.
      int hashCode()
      Returns a suitable hash code.
      java.lang.String toString()
      Returns the name.
      • Methods inherited from class java.lang.Object

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

      • MarketDataName

        public MarketDataName()
    • Method Detail

      • getName

        public abstract java.lang.String getName()
        Gets the market data name.

        The name must be unique within any single coherent data set.

        Specified by:
        getName in interface Named
        Returns:
        the unique name
      • getMarketDataType

        public abstract java.lang.Class<T> getMarketDataType()
        Gets the type of data this name refers to.
        Returns:
        the type of the market data this name refers to
      • compareTo

        public int compareTo​(MarketDataName<?> other)
        Compares this name to another.

        Instances are compared in alphabetical order based on the name, taking into account the implementation type.

        Specified by:
        compareTo in interface java.lang.Comparable<T>
        Parameters:
        other - the object to compare to
        Returns:
        the comparison
      • equals

        public final boolean equals​(java.lang.Object obj)
        Checks if this instance equals another.

        Instances are compared based on the name and market data type.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to compare to, null returns false
        Returns:
        true if equal
      • hashCode

        public final int hashCode()
        Returns a suitable hash code.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a suitable hash code
      • toString

        public final java.lang.String toString()
        Returns the name.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the name