Allowing factory to process derived model descriptors.
@@ -13,5 +13,5 @@ package net.finmath.modelling;
*/
public interface ModelFactory<T extends ModelDescriptor> {
- Model<T> getModelFromDescriptor(T description);
+ Model<? extends T> getModelFromDescriptor(T description);
}
