Interface ResolvableTrade<T extends ResolvedTrade>

    • Method Detail

      • resolve

        T resolve​(ReferenceData refData)
        Resolves this trade using the specified reference data.

        This converts this trade to the equivalent resolved form. All ReferenceDataId identifiers in this instance will be resolved. The resulting ResolvedTrade is optimized for pricing.

        Resolved objects may be bound to data that changes over time, such as holiday calendars. If the data changes, such as the addition of a new holiday, the resolved form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.

        Specified by:
        resolve in interface Resolvable<T extends ResolvedTrade>
        Parameters:
        refData - the reference data to use when resolving
        Returns:
        the resolved trade
        Throws:
        ReferenceDataNotFoundException - if an identifier cannot be resolved in the reference data
        java.lang.RuntimeException - if unable to resolve due to an invalid definition
      • withInfo

        ResolvableTrade<T> withInfo​(TradeInfo info)
        Returns an instance with the specified info.
        Specified by:
        withInfo in interface Trade
        Parameters:
        info - the new info
        Returns:
        the instance with the specified info