code: public static Date dateReservedYear(int year, boolean is000) {
          Calendar calendar = Calendar.getInstance();
          calendar.set(Calendar.YEAR, year);
  
          return is000 ? dateReservedYear000(calendar) : dateReservedYear999(calendar);
      }
docs: 将某一年对应的日期的月,日,时,分,秒,毫秒调整为最大值或者最小值
  
  @param year  年份
  @param is000 true则调整为最小值,反之最大值
  @return 被转化后的日期
  @see #dateReservedYear000(Date)
  @see #dateReservedYear000(Calendar)
  @see #dateReservedYear999(Date)
  @see #dateReservedYear999(Calendar)