code: public static Integer[] splitNumSeq(final String numSeq) {
      if (isEmpty(numSeq)) { return null; }
      String[] numArray = split(numSeq, ',');
      Set<Integer> numSet = CollectUtils.newHashSet();
      for (int i = 0; i < numArray.length; i++) {
        String num = numArray[i];
        if (num.contains("-")) {
          String[] termFromTo = split(num, '-');
          int from = Numbers.toInt(termFromTo[0]);
          int to = Numbers.toInt(termFromTo[1]);
          for (int j = from; j <= to; j++) {
            numSet.add(Integer.valueOf(j));
          }
        } else {
          numSet.add(new Integer(num));
        }
      }
      Integer[] nums = new Integer[numSet.size()];
      numSet.toArray(nums);
      return nums;
    }
docs: 将1-2,3,4-9之类的序列拆分成数组
  
  @param numSeq
  a {@link java.lang.String} object.
  @return an array of {@link java.lang.Integer} objects.