Interface Resolvable<T>

    • Method Detail

      • resolve

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

        This converts the object implementing this interface to the equivalent resolved form. All ReferenceDataId identifiers in this instance will be resolved. The resolved form will typically be a type that 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.

        refData - the reference data to use when resolving
        the resolved instance
        ReferenceDataNotFoundException - if an identifier cannot be resolved in the reference data
        RuntimeException - if unable to resolve due to an invalid definition