class ValueStep implements ImmutableBean, Serializable {

  @Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    }
    if (obj != null && obj.getClass() == this.getClass()) {
      ValueStep other = (ValueStep) obj;
      return JodaBeanUtils.equal(periodIndex, other.periodIndex) &&
          JodaBeanUtils.equal(date, other.date) &&
          JodaBeanUtils.equal(value, other.value);
    }
    return false;
  }

  private  ValueStep(
      Integer periodIndex,
      LocalDate date,
      ValueAdjustment value);

}