Class IndexQuoteId

    • Method Detail

      • of

        public static IndexQuoteId of​(Index index,
                                      FieldName fieldName)
        Obtains an instance used to obtain an observable value of the index.

        The market data source is ObservableSource.NONE.

        Parameters:
        index - the index
        fieldName - the name of the field in the market data record holding the data
        Returns:
        the identifier
      • of

        public static IndexQuoteId of​(Index index,
                                      FieldName fieldName,
                                      ObservableSource obsSource)
        Obtains an instance used to obtain an observable value of the index, specifying the source of observable market data.
        Parameters:
        index - the index
        fieldName - the name of the field in the market data record holding the data
        obsSource - the source of observable market data
        Returns:
        the identifier
      • getStandardId

        public StandardId getStandardId()
        Gets the identifier of the data.

        This returns an artificial identifier with a scheme of 'OG-Index' and a value of the index name.

        Specified by:
        getStandardId in interface ObservableId
        Returns:
        the standard identifier
      • withObservableSource

        public IndexQuoteId withObservableSource​(ObservableSource obsSource)
        Description copied from interface: ObservableId
        Returns an identifier equivalent to this with the specified source.
        Specified by:
        withObservableSource in interface ObservableId
        Parameters:
        obsSource - the source of market data
        Returns:
        the observable identifier
      • meta

        public static org.joda.beans.TypedMetaBean<IndexQuoteId> meta()
        The meta-bean for IndexQuoteId.
        Returns:
        the meta-bean, not null
      • metaBean

        public org.joda.beans.TypedMetaBean<IndexQuoteId> metaBean()
        Specified by:
        metaBean in interface org.joda.beans.Bean
      • getIndex

        public Index getIndex()
        Gets the index.
        Returns:
        the value of the property, not null
      • getFieldName

        public FieldName getFieldName()
        Gets the field name in the market data record that contains the market data item. The most common field name is market value.
        Specified by:
        getFieldName in interface ObservableId
        Returns:
        the value of the property, not null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object