code: public static List<DayOfTheWeek> getPart(@NotNull final DayOfTheWeek from, @NotNull final DayOfTheWeek to) {
          final List<DayOfTheWeek> days = new ArrayList<>();
          for (final DayOfTheWeek day : ALL) {
              if (day.id >= from.id && day.id <= to.id) {
                  days.add(day);
              }
          }
          return Collections.unmodifiableList(days);
      }
docs: Returns a list of the weekdays ordered by the id from/to the given days.
  
  @param from
  From day of the week (inclusive).
  @param to
  To day of the week (inclusive).
  
  @return Unmodifiable list.