* @return true if this is equal to the other date
   */
  @Override
  public boolean equals(Object obj) {

    if (this == obj) {
      return true;
    }
    if (obj instanceof LocalDate) {
      return compareTo0((LocalDate) obj) == 0;
    }
    return false;
  }