* @return the comparator value, negative if less, positive if greater
   */
  @Override
  public int compareTo(YearMonth other) {

    int cmp = (this.year - other.year);
    if (cmp == 0) {
      cmp = (this.month - other.month);
    }
    return cmp;
  }