public static <T extends BaseCurve> T fromYaml(String yaml, Class<T> curveClass) {
        try {
            return BaseEvaluation.getYamlMapper().readValue(yaml, curveClass);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
public static < T extends BaseCurve > T fromYaml ( String yaml , Class < T > curveClass ) { try { return BaseEvaluation . getYamlMapper ( ) . readValue ( yaml , curveClass ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
@param yaml       YAML representation
@param curveClass Class for the curve
@param <T>        Type
@return           Instance of the curve