return localVolatility;
}
// ok, so it's strike-dependent. Never mind.
if (LocalVolSurface.class.isAssignableFrom(klass)) {
localVolatility.linkTo(new LocalVolSurface(blackVolatility, riskFreeRate, dividendYield, x0));
updated = true;
return localVolatility;
}
// Note: The previous LocalVolSurface case was a catch-all condition.