- Type Parameters:
T- the type of the resolved trade
- All Known Implementing Classes:
public interface ResolvableTrade<T extends ResolvedTrade> extends Trade, Resolvable<T>A trade that can to be resolved using reference data.
Resolvable trades are the primary definition of a trade that applications work with. They are resolved when necessary for use with pricers, locking in specific reference data.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
resolve(ReferenceData refData)Resolves this trade using the specified reference data.
withInfo(TradeInfo info)Returns an instance with the specified info.
T resolve(ReferenceData refData)Resolves this trade using the specified reference data.
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:
Resolvable<T extends ResolvedTrade>
refData- the reference data to use when resolving
- the resolved trade
ReferenceDataNotFoundException- if an identifier cannot be resolved in the reference data
java.lang.RuntimeException- if unable to resolve due to an invalid definition