docs: public static List<Integer> toIntegerList(int[] array) {
          List<Integer> result = new ArrayList<Integer>(array.length);
          for (int partitionId : array) {
              result.add(partitionId);
          }
          return result;
      }