class ConstantNodalCurve implements NodalCurve, ImmutableBean, Serializable {

  public static ConstantNodalCurve of(CurveMetadata metadata, double xValue, double yValue) {
    return new ConstantNodalCurve(metadata, xValue, yValue);
  }

  @ImmutableConstructor private  ConstantNodalCurve(
      CurveMetadata metadata,
      double xValue,
      double yValue);

}