This method of the IntRanges Class sets the integer ranges from an existing integer array.
public synchronized void setRanges(int[] array);