class ConstantCurveShiftFunction implements CurveShiftFunction<ConstantDoublesCurve> {

  @Override
  public ConstantDoublesCurve evaluate(final ConstantDoublesCurve curve, final double shift) {
    Validate.notNull(curve, "curve");
    return evaluate(curve, shift, "PARALLEL_SHIFT_" + curve.getName());
  }

}