Class QuoteScenarioArrayId

    • Method Detail

      • of

        public static QuoteScenarioArrayId of​(StandardId id,
                                              FieldName fieldName)
        Returns a key identifying the market data with the specified ID and field name.
        Parameters:
        id - the ID of the quote
        fieldName - the field name of the market data record containing the quote data
        Returns:
        a key identifying the market data with the specified ID and field name
      • of

        public static QuoteScenarioArrayId of​(QuoteId quoteId)
        Returns a key identifying the same market data as the quote key.
        Parameters:
        quoteId - key identifying the quote
        Returns:
        a key identifying the same market data as the quote key
      • createScenarioValue

        public QuoteScenarioArray createScenarioValue​(MarketDataBox<java.lang.Double> marketDataBox,
                                                      int scenarioCount)
        Description copied from interface: ScenarioMarketDataId
        Creates an instance of the scenario market data object from a box containing data of the same underlying type.

        There are many possible ways to store scenario market data for a data type. For example, if the single values are doubles, the scenario value might simply be a List<Double> or it might be a wrapper class that stores the values more efficiently in a double[].

        This method allows a scenario value of the required type to be created from a different type of scenario value or from a single value.

        Normally this method will not be used. It is assumed the required scenario values will be created by the perturbations that create scenario data. However there is no mechanism in the market data system to guarantee that scenario values of a particular type are available. If they are not, this method creates them on demand.

        Values returned from this method might be cached in the market data containers for efficiency.

        Specified by:
        createScenarioValue in interface ScenarioMarketDataId<java.lang.Double,​QuoteScenarioArray>
        Parameters:
        marketDataBox - a market data box containing single market data values of the same type as the scenario value identified by this key
        scenarioCount - the number of scenarios for which data is required in the returned value
        Returns:
        an object containing market data for multiple scenarios built from the data in the market data box
      • meta

        public static QuoteScenarioArrayId.Meta meta()
        The meta-bean for QuoteScenarioArrayId.
        Returns:
        the meta-bean, not null
      • getId

        public QuoteId getId()
        Gets the market data key identifying the quote.
        Returns:
        the value of the property, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        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