class PackedLocalDate {

  public static int plusYears(int yearsToAdd, int packedDate) {
    if (yearsToAdd == 0) {
      return packedDate;
    }
    byte d = getDayOfMonth(packedDate);
    byte m = getMonthValue(packedDate);
    short y = getYear(packedDate);

    int newYear = YEAR.checkValidIntValue(yearsToAdd + y);
    return resolvePreviousValid(newYear, m, d);
  }

}