code: final public void addPositions(Set<Integer> list) {
      int[] positions = ArrayUtils
          .toPrimitive(list.toArray(new Integer[list.size()]));
      addPositions(positions);
    }
docs: Adds the positions.
  
  @param list the list